Reaver: Stop if AP becomes locked. Config/Args cleanup

This commit is contained in:
derv82
2018-08-23 18:57:56 -07:00
parent 9beae4beb2
commit 750fe086fa
3 changed files with 67 additions and 52 deletions

View File

@@ -103,6 +103,7 @@ class Configuration(object):
cls.use_bully = False # Use bully instead of reaver
cls.wps_pixie = True
cls.wps_pin = True
cls.wps_ignore_lock = False # Skip WPS PIN attack if AP is locked.
cls.wps_pixie_timeout = 300 # Seconds to wait for PIN before WPS Pixie attack fails
cls.wps_fail_threshold = 100 # Max number of failures
cls.wps_timeout_threshold = 100 # Max number of timeouts
@@ -360,6 +361,10 @@ class Configuration(object):
Color.pl('{+} {C}option:{W} will stop WPS attack after ' +
'{O}%d timeouts{W}' % args.wps_timeout_threshold)
if args.wps_ignore_lock:
cls.wps_ignore_lock = True
Color.pl('{+} {C}option:{W} will {O}ignore{W} WPS lock-outs')
@classmethod
def parse_encryption(cls):
'''Adjusts encryption filter (WEP and/or WPA and/or WPS)'''