Question regarding 22000 hashes - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Misc (https://hashcat.net/forum/forum-15.html) +--- Forum: General Talk (https://hashcat.net/forum/forum-33.html) +--- Thread: Question regarding 22000 hashes (/thread-10378.html) |
Question regarding 22000 hashes - birdysan - 10-02-2021 Hello! So I recently realized that I'm a bit behind on the newer techniques used to crack WPA2 (the PMKID method, for instance). Decided to start reading up on it and experiment on my own network at home. There is one thing I encountered though, that I wanted to ask about. In this test I run "hcxdumptool -c 52 -i wlan1 -o wpatest.pcapng --enable-status=15 --active_beacon". I didn't get any PMKID or EAPOL frames that could be used so I tried logging into my wifi from another device and entered the wrong password, which then seemed to trigger the correct frames being sent/captured (So I thought at least). When later cracking the resulting hash (WPA*02*) the found password was the incorrect one I had entered earlier, which then of course gives me a useless result since I cannot use this to login to my wifi. Now to my question. Is there a way to know if the hash contains an incorrectly entered password, or do I just have to assume that the person entering it knows what they are doing? Is any of the methods (PMKID, EAPOL) better in this scenario in terms of actually knowing if one can trust the resulting hash or not? If I do a security assessment in the future I would prefer to focus on one method where I can trust that the resulting hash is worth spending GPU cycles on. Looking forward to any potential replies! : ) RE: Question regarding 22000 hashes - ZerBea - 10-02-2021 An EAPOL key exchange consists of 4 parts. https://www.wifi-professionals.com/2019/01/4-way-handshake Or simply explained: 1. The AP transmit an EAPOL M1 (challenge) to the CLIENT "hey CLIENT, let's see if you entitled to enter this NETWORK" 2. The CLIENT respond with an EAPOL M2 (challenge) "hey AP, this my PSK, am I allowed to enter the NETWORK" 3. The AP transmit an EAPOL M3 message (authorization) "hey CLIENT, you are allowed to join the NETWORK" 4. The CLIENT confirm with an EAPOL M4 (authorization) and join the NETWORK If the PSK is wrong, or the CLIENT belong to a different NETWORK, using the same ESSID the AP doesn't allow to join the NETWORK. It will not transmit EAPOL M3. BTW: This behavior is desired to retrieve an EAPOL M2 from a single CLIENT and major part of an AP-LESS attack. You can control how many M2's hcxdumptool should accept by this options: Code: --stop_client_m2_attacks=<digit> : stop attacks against CLIENTS after 10 M2 frames received The last field of a 22000 hash line contain information about the kind of the EAPOL MESSAGEPAIR that was converted by hcxpcapngtool. It is explained hcxpcapngtool help: Code: $ hcxpcapngtool --help Please notice that hcxdumptool/hcxtools are designed to be analysis tools. By default options they grep and convert everything that they will get, in order to filter/anaylse later on, offline. How to get exactly the kind of the EAPOL MESSAGEPAIR that you want, is explained here: https://hashcat.net/forum/thread-10253-post-53580.html#pid53580 "In this test I run hcxdumptool -c 52 -i wlan1 -o wpatest.pcapng --enable-status=15 --active_beacon" Please notice: Not every AP will send a PMKID. You're trying to run an attack on 5GHz. Therefore you must allow the driver to transmit on this RF band. That is mandatory. If your regulatory domain is unset, transmission on 5GHz band is not allowed: Code: $ iw reg get The regulatory domain (hcxdumptool respects it) and how to change it, is explained here: https://wiki.archlinux.org/title/Network_configuration/Wireless#Respecting_the_regulatory_domain e.g.: Code: $ sudo iw reg set US RE: Question regarding 22000 hashes - birdysan - 10-02-2021 (10-02-2021, 02:09 PM)ZerBea Wrote: An EAPOL key exchange consists of 4 parts. Thank you for the swift reply, very helpful information! So I ran a few more tests just to see what the different bitmasks on the hashes would result in. I got two that I don't understand fully (Still on 5ghz though). One ends with "*10" and one ends with "*c0". I can't find anything in the documentation about a 00001010 bitmask, and not sure what to make of the c0 one. RE: Question regarding 22000 hashes - ZerBea - 10-02-2021 hcxdumptool and hcxpcapngtool are able to detect the endianness (BE/LE) of a router. https://en.wikipedia.org/wiki/Endianness This value is used to tell hashcat that it should use NC LE (nonce-error-corrections) or NC BE, both (if endianness is not detected) or none. That will speed up hashcat. NC is explained here: https://hashcat.net/forum/thread-6361.html That is a fantastic feature to compensate packet loss (mostly if passive dumpers, e.g. Wireshark are in use, or if stupid deauthentication tools destroyed the authentication sequence). Code: 0x10 = 00010000 00001010 is impossible, because bit 3 is reserved and not in use. 00010010 is impossible, because hcxdumptool is not able to calculate a valid M3. To do this, we must know the PSK! RE: Question regarding 22000 hashes - birdysan - 10-02-2021 Thank you once more! When you say impossible though, do you mean impossible to crack or to get as a resulting hash? Because the 0x10 one is the one where I entered the wrong password (and had hashcat crack it with said "wrong" password), and both bitmasks resulted in a hash. I'm guessing this is normal behavior because, as you said, they are designed to be analysis tools? Again, thank you for your swift replies. I will continue reading the material you so generously provided . RE: Question regarding 22000 hashes - ZerBea - 10-02-2021 Impossible means that this bit combinations are not coded in hcxpcapngtool. If you see this bit combination, something may have went wrong. 0x10 came from a hcxdumptool AP-LESS attack, because hcxdumptool requested this M2 from a CLIENT. This is normal behavior, because, dependent on the options, hcxdumptool respond to every authentication attempt of a CLIENT and request as much as possible M2s (from which we can recover the PSK that was typed in or the PSK that is stored in e.g. the wpa_supplicant.conf of the CLIENT). To identify this M1M2ROGUE EAPOLMESSAGEPAIRS later on (offline), bit 4 is set (AP-LESS attack). Please notice: hcxdumptool and hcxtools are analysis tools and M2s of CLIENTs are are ideal for analyses purpose. Conversely, this means that the user of this tools should exactly know how to handle the output of them. This applies to the attack options of hcxdumptool, the conversion options of hcxpcapngtool and the filter options of hcxhashtool. |