aircrack-ng / aircrack-ng

WiFi security auditing tools suite
https://aircrack-ng.org
GNU General Public License v2.0
5.46k stars 949 forks source link

wpaclean doesn't clean half-handshakes #2348

Open s0i37 opened 1 year ago

s0i37 commented 1 year ago

Issue type

System information

Aircrack-ng version

Defect

About wpaclean said - it saves only 4-way handshakes. In other words it is valid handshakes. However wpaclean saves also and half-handshakes.

Details

When I move across physical perimeter I make deauth and online bruteforcing attacks in the same time. And because of I sends many wrong attempts I can't distinguish handshakes of real clients.

How to reproduce the issue

Just send the wrong PSK password.

s0i37 commented 1 year ago

My pcap file has m1m2 (wrong pass) and m1m2m3(valid pass), obviously I cant brute it without cleaning:

hcxpcapngtool m1m2_m1m2m3.pcap -o eapol.txt --all
hcxhashtool -i eapol.txt --authorized -o eapol_valid.txt
hcxhash2cap --pmkid-eapol=eapol_valid.txt -c out-m1m2.cap