Don't crack if --dict wordlist is not found (e.g. --dict none)

Should probably be another option like --no-crack
This commit is contained in:
derv82
2017-05-16 19:16:58 -04:00
parent bcde906a77
commit 8621d422ac
2 changed files with 5 additions and 4 deletions

View File

@@ -169,7 +169,8 @@ class Configuration(object):
Configuration.wordlist = args.wordlist
Color.pl('{+} {C}option:{W} using wordlist {G}%s{W} to crack WPA handshakes' % args.wordlist)
else:
Color.pl('{+} {C}option:{O} wordlist {R}%s{O} was not found, using {R}%s{W}' % (args.wordlist, Configuration.wordlist))
Configuration.wordlist = None
Color.pl('{+} {C}option:{O} wordlist {R}%s{O} was not found, wifite will NOT attempt to crack handshakes' % args.wordlist)
if args.wpa_deauth_timeout:
Configuration.wpa_deauth_timeout = args.wpa_deauth_timeout
Color.pl('{+} {C}option:{W} will deauth WPA clients every {G}%d seconds{W}' % args.wpa_deauth_timeout)