Merge pull request #426 from emedvedev/patch-1

Fix the AircrackOnly plugin
This commit is contained in:
evilsocket 2019-10-27 12:55:17 +01:00 committed by GitHub
commit 787a498c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
__author__ = 'pwnagotchi [at] rossmarks [dot] uk'
__version__ = '1.0.0'
__version__ = '1.0.1'
__name__ = 'AircrackOnly'
__license__ = 'GPL3'
__description__ = 'confirm pcap contains handshake/PMKID or delete it'
@ -28,7 +28,7 @@ def on_handshake(agent, filename, access_point, client_station):
if result:
logging.info("[AircrackOnly] contains handshake")
else:
todetele = 1
todelete = 1
if todelete == 0:
result = subprocess.run(('/usr/bin/aircrack-ng '+ filename +' | grep "PMKID" | awk \'{print $2}\''),shell=True, stdout=subprocess.PIPE)
@ -36,11 +36,11 @@ def on_handshake(agent, filename, access_point, client_station):
if result:
logging.info("[AircrackOnly] contains PMKID")
else:
todetele = 1
todelete = 1
if todelete == 1:
os.remove(filename)
set_text("uncrackable pcap")
set_text("Removed an uncrackable pcap")
display.update(force=True)
text_to_set = "";