Merge pull request #809 from dadav/fix/ohc_typo

Fix bug in ohc plugin
This commit is contained in:
Simone Margaritelli 2020-01-20 11:13:41 +01:00 committed by GitHub
commit 4a5d2d36cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ class OnlineHashCrack(plugins.Plugin):
dashboard = s.get(self.options['dashboard'], timeout=timeout)
result = s.get('https://www.onlinehashcrack.com/wpa-exportcsv', timeout=timeout)
result.raise_for_status()
with open(save_file, 'wt') as output_file:
with open(save_file, 'wb') as output_file:
output_file.write(result.content)
except requests.exceptions.RequestException as req_e:
raise req_e