From f80eeff8fc18499a5bdc829d32ac5b46c85cbb6b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Oct 2019 10:20:48 +0100 Subject: [PATCH] fix multiple dictionary issue --- pwnagotchi/plugins/default/quickdic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/quickdic.py b/pwnagotchi/plugins/default/quickdic.py index 916a3b1..b898b21 100644 --- a/pwnagotchi/plugins/default/quickdic.py +++ b/pwnagotchi/plugins/default/quickdic.py @@ -8,6 +8,7 @@ __description__ = 'Run a quick dictionary scan against captured handshakes' Aircrack-ng needed, to install: > apt-get install aircrack-ng Upload wordlist files in .txt format to folder in config file (Default: /opt/wordlists/) +Cracked handshakes stored in handshake folder as [essid].pcap.cracked ''' import logging @@ -29,7 +30,7 @@ def on_handshake(agent, filename, access_point, client_station): logging.info("[quickdic] No handshake") else: logging.info("[quickdic] Handshake confirmed") - result2 = subprocess.run(('aircrack-ng -w '+OPTIONS['wordlist_folder']+'*.txt -l '+filename+'.cracked -q -b '+result+' '+filename+' | grep KEY'),shell=True,stdout=subprocess.PIPE) + result2 = subprocess.run(('aircrack-ng -w `echo '+OPTIONS['wordlist_folder']+'*.txt | sed \'s/\ /,/g\'` -l '+filename+'.cracked -q -b '+result+' '+filename+' | grep KEY'),shell=True,stdout=subprocess.PIPE) result2 = result2.stdout.decode('utf-8').strip() logging.info("[quickdic] "+result2) if result2 != "KEY NOT FOUND":