From fe97315b0f10b21d3b7f83a6fe5e35d1430552d6 Mon Sep 17 00:00:00 2001
From: dadav <33197631+dadav@users.noreply.github.com>
Date: Sun, 19 Jan 2020 15:47:58 +0100
Subject: [PATCH] bytes...

---
 pwnagotchi/plugins/default/onlinehashcrack.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pwnagotchi/plugins/default/onlinehashcrack.py b/pwnagotchi/plugins/default/onlinehashcrack.py
index a2e6d1c..82a82bf 100644
--- a/pwnagotchi/plugins/default/onlinehashcrack.py
+++ b/pwnagotchi/plugins/default/onlinehashcrack.py
@@ -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