Revert "Revert "Testing pcapng fileformat""

This reverts commit 0e274af5a0.
This commit is contained in:
Jeroen Oudshoorn
2024-02-08 22:51:57 +01:00
parent 0e274af5a0
commit ca4feb895e
9 changed files with 44 additions and 53 deletions

View File

@ -142,6 +142,6 @@ class OnlineHashCrack(plugins.Plugin):
for row in csv.DictReader(cracked_list):
if row['password']:
filename = re.sub(r'[^a-zA-Z0-9]', '', row['ESSID']) + '_' + row['BSSID'].replace(':','')
if os.path.exists( os.path.join(handshake_dir, filename+'.pcap') ):
with open(os.path.join(handshake_dir, filename+'.pcap.cracked'), 'w') as f:
if os.path.exists( os.path.join(handshake_dir, filename+'.pcapng')):
with open(os.path.join(handshake_dir, filename+'.pcapng.cracked'), 'w') as f:
f.write(row['password'])