Skip to content

Commit d88ed4a

Browse files
committed
hashcat: output only the 'recovered' key into cracked.json
1 parent f7d00e0 commit d88ed4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wifite/tools/hashcat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ def crack_pmkid(pmkid_file, verbose=False):
113113
# Failed
114114
continue
115115
else:
116-
return stdout.strip().split(':', 1)[1]
116+
# Hashcat PMKID output format: hash*bssid*station*essid:password
117+
# We only want the password (last part after the last colon)
118+
return stdout.strip().split(':')[-1]
117119

118120

119121
class HcxDumpTool(Dependency):

0 commit comments

Comments
 (0)