Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion wifite/attack/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,3 @@ def user_wants_to_continue(cls, targets_remaining, attacks_remaining=0):
return False # Exit
else:
return True # Continue

17 changes: 10 additions & 7 deletions wifite/attack/pmkid.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def run(self):
from ..util.process import Process
# Check that we have all hashcat programs
dependencies = [
Hashcat.dependency_name,
HcxDumpTool.dependency_name,
HcxPcapTool.dependency_name
]
Expand All @@ -91,12 +90,17 @@ def run(self):
return False # No hash found.

# Crack it.
try:
self.success = self.crack_pmkid_file(pmkid_file)
except KeyboardInterrupt:
Color.pl('\n{!} {R}Failed to crack PMKID: {O}Cracking interrupted by user{W}')
if Process.exists(Hashcat.dependency_name):
try:
self.success = self.crack_pmkid_file(pmkid_file)
except KeyboardInterrupt:
Color.pl('\n{!} {R}Failed to crack PMKID: {O}Cracking interrupted by user{W}')
self.success = False
return True
else:
self.success = False
return False
Color.pl('\n {O}[{R}!{O}] Note: PMKID attacks are not possible because you do not have {C}%s{O}.{W}'
% Hashcat.dependency_name)

return True # Even if we don't crack it, capturing a PMKID is 'successful'

Expand Down Expand Up @@ -210,4 +214,3 @@ def save_pmkid(self, pmkid_hash):
pmkid_handle.write('\n')

return pmkid_file