New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMKID attack not compatible with hashcat mode 16800 #592
Comments
fixed by #603 |
Tried to use the latest version compiled from the master branch (with the fix). But I still get no output after
|
I read |
same here, and for the record is it -z or -k ??? hcxpcaptool -E essidlist -I identitylist -U usernamelist -z bettercap-wifi-handshakes.16800 bettercap-wifi-handshakes.pcap reading from bettercap-wifi-handshakes.pcap summary:file name....................: bettercap-wifi-handshakes.pcap 0 PMKID(s) written to bettercap-wifi-handshakes.16800 |
@evilsocket looks fine :) but there are no any output file. |
yeah missing output file... |
given that the tool itself reports a correct amount of PMKIDs but is unable to dump them, i'd say it's its bug, not bettercap's ... but i'd dig into it to make sure that's the case 👍 |
@evilsocket the most awesome, rock star, code god improvement would be a native choice of output file formats directly in bettercap 👌😁🥰💕🐾🏴☠️💀 |
@careyjames pcap is the most universal format for this stuff, i'd rather not introduce specific parts of code just to support external tools ... especially if those tools can read natively pcaps :) |
Ah , so then is there a way to crack pmkid without conversion??? |
no, i was referring to hcxpcaptool |
I was having the same problem and using bettercap from master fixed it. Follows the output of
And the PMKID file is created.
Hashcat is able to extract the PMKID as well.
|
@evilsocket here is the same issue in hcxtools ZerBea/hcxtools#109 |
I got some issue reports that hcxpcaptool doesn't convert hashes from bettercap pacp files and run an analysis on them: In both cases bettercap didn't captured the required frames and there was nothing to convert on requested option -z or -k Both bettercap pcap files doesn't provide a matching ESSID BTW: |
@ZerBea did you try to pull and compile bettercap master? because after the last fix, the required frames are there ... actually, the required frames were there all along, bettercap simply wasn't adding the beacon frame to get the SSID from, which now it adds. |
No, I only got the bettercap pcap files and analyzed them. Maybe they are captured by an older bettercap version. We can't determine this, because pcap doesn't support file hardware information, file os information and file application information. |
I don’t want to sound rude, but how about you send a PR given the strong opinions you have about what should be added to the software? :) The bug seems to be fixed with the aforementioned PR. |
Unfortunately I'm not a go coder, so a PR is big disaster. :) |
Prerequisites
Done!
PMKID attack not compatible with hashcat mode 16800
Environment
This issue was encountered while following the RSN PMKID based attack guide.
Please provide:
bettercap --version
sudo bettercap -iface en0
wifi.recon on
set wifi.show.sort clients desc
set ticker.commands 'clear; wifi.show; wifi.assoc all'
ticker on
sudo bettercap -iface en0 -debug
).wifi.recon on
set wifi.show.sort clients desc
set ticker.commands 'clear; wifi.show; wifi.assoc all'
ticker on
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi hopping on channel 7
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [inf] wifi sending association request to AP xxx00000000-2.4G (channel:9 encryption:WPA2)
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi hopping on channel 40
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi got frame 1/4 of the aa:aa:aa:aa:aa:aa <-> rr:rr:rr:rr:rr:rr handshake (without PMKID) (anonce:c02feb54973cf00abd42b25533c07a78fb942f71345ca73adb54d19322609270)
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi saving handshake frames to /Users/admin/bettercap-wifi-handshakes.pcap
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi got frame 3/4 of the aa:aa:aa:aa:aa:aa <-> rr:rr:rr:rr:rr:rr handshake (mic:6ef4792d8f11881b40ca117a40254bb9)
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi saving handshake frames to /Users/admin/bettercap-wifi-handshakes.pcap
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi skipping dot11 packet with invalid checksum.
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi skipping dot11 packet with invalid checksum.
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi skipping dot11 packet with invalid checksum.
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi got frame 1/4 of the bb:bb:bb:bb:bb:bb <-> rr:rr:rr:rr:rr:rr handshake (without PMKID) (anonce:bfdda0ff93a80b979b5db3ed01a0b7cd3f6aa9a5f118fddf6f9d7f57798e1978)
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi saving handshake frames to /Users/admin/bettercap-wifi-handshakes.pcap
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi got frame 1/4 of the cc:cc:cc:cc:cc:cc <-> rr:rr:rr:rr:rr:rr handshake (with PMKID) (anonce:05d32b34b777a5ab3165af3398afd24255c7a492f05bb3b5107d83f9cce8b82a)
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi saving handshake frames to /Users/admin/bettercap-wifi-handshakes.pcap
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [wifi.client.handshake] captured 28:cf:e9:14:11:b1 -> xxx00000000-2.4G (1c:59:9b:ss:ss:ss) RSN PMKID to /Users/admin/bettercap-wifi-handshakes.pcap
192.168.0.0/24 > 192.168.0.192 » [10:41:06] [sys.log] [dbg] wifi skipping dot11 packet with invalid checksum.
sudo hcxpcaptool -k pmkid.16800 bettercap-wifi-handshakes.pcap
reading from bettercap-wifi-handshakes.pcap
summary:
file name........................: bettercap-wifi-handshakes.pcap
file type........................: pcap 2.4
file hardware information........: unknown
file os information..............: unknown
file application information.....: unknown
network type.....................: DLT_IEEE802_11_RADIO (127)
endianness.......................: little endian
read errors......................: flawless
packets inside...................: 9
skipped packets (damaged)........: 0
packets with GPS data............: 0
packets with FCS.................: 9
EAPOL packets (total)............: 9
EAPOL packets (WPA2).............: 9
PMKIDs (total)...................: 2
PMKIDs (WPA2)....................: 9
PMKIDs from access points........: 2
best PMKIDs......................: 2
Steps to Reproduce
gem install bettercap
^ on an open wifiExpected behavior: Bettercap is compatible with hcxpcaptool and hashcat mode 16800
Actual behavior: You have to resort to mode 16801 which is very cumbersome
If you need anything don't hesitate ask!
--
♥ ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY ♥
The text was updated successfully, but these errors were encountered: