Rewrote --crack behavior; supports multiple handshakes at once.

This commit is contained in:
derv82
2018-08-18 02:50:45 -07:00
parent 0977f48d0c
commit c4ed911490
4 changed files with 193 additions and 117 deletions

View File

@@ -15,7 +15,7 @@ class Hashcat(Dependency):
dependency_url = 'https://hashcat.net/hashcat/'
@staticmethod
def crack_pmkid(pmkid_file):
def crack_pmkid(pmkid_file, verbose=False):
'''
Cracks a given pmkid_file using the PMKID/WPA2 attack (-m 16800)
Returns:
@@ -36,6 +36,8 @@ class Hashcat(Dependency):
Configuration.wordlist
]
command.extend(additional_arg)
if verbose and additional_arg == []:
Color.pl('{+} {D}Running: {W}{P}%s{W}' % ' '.join(command))
# TODO: Check status of hashcat (%); it's impossible with --quiet