From cf46ab3da958050a1c0ad3f3f19d9f4c5a5b5446 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Tue, 23 Jan 2024 14:47:06 +0100 Subject: [PATCH] Removed hashie interval and deprecated functions of hcxpcapngtool. --- pwnagotchi/plugins/default/hashie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/hashie.py b/pwnagotchi/plugins/default/hashie.py index ab80d746..cd41122b 100644 --- a/pwnagotchi/plugins/default/hashie.py +++ b/pwnagotchi/plugins/default/hashie.py @@ -95,7 +95,7 @@ class Hashie(plugins.Plugin): def _writeEAPOL(self, fullpath): fullpathNoExt = fullpath.split('.')[0] filename = fullpath.split('/')[-1:][0].split('.')[0] - subprocess.run('hcxpcapngtool -o {}.22000 {} >/dev/null 2>&1'.format(fullpathNoExt, fullpath)) + subprocess.getoutput('hcxpcapngtool -o {}.22000 {} >/dev/null 2>&1'.format(fullpathNoExt, fullpath)) if os.path.isfile(fullpathNoExt + '.22000'): logging.debug('[Hashie] [+] EAPOL Success: {}.22000 created'.format(filename)) return True @@ -104,7 +104,7 @@ class Hashie(plugins.Plugin): def _writePMKID(self, fullpath): fullpathNoExt = fullpath.split('.')[0] filename = fullpath.split('/')[-1:][0].split('.')[0] - subprocess.run('hcxpcapngtool -o {}.16800 {} >/dev/null 2>&1'.format(fullpathNoExt, fullpath)) + subprocess.getoutput('hcxpcapngtool -o {}.16800 {} >/dev/null 2>&1'.format(fullpathNoExt, fullpath)) if os.path.isfile(fullpathNoExt + '.16800'): logging.debug('[Hashie] [+] PMKID Success: {}.16800 created'.format(filename)) return True