Lesson 7 of 13 · 15m
Deauth and Capture, End to End
The four-tool workflow — airmon-ng, airodump-ng, aireplay-ng, hashcat — from monitor mode to a hashcat 22000 job, and why PMF kills it.
The WPA2-PSK capture workflow has been stable for fifteen years and fits in four tools. Here is what each one actually does, and the mechanism that makes step three work.
The attacker's whole task is producing a re-authentication on demand. A client that never rejoins never re-handshakes, so the classic move is forcing the drop yourself.
The workflow
sudo airmon-ng start wlan0 # monitor mode on a new interface (wlan0mon)
sudo airodump-ng wlan0mon # survey: BSSIDs, channels, clients
sudo airodump-ng wlan0mon -c 6 --bssid AA:BB:CC:DD:EE:FF -w cap # lock onto channel + AP, write pcap
sudo aireplay-ng -0 30 -a AA:BB:CC:DD:EE:FF -c 11:22:33:44:55:66 wlan0mon # deauth burst at one clientairmon-ng puts the adapter in monitor mode — the new wlan0mon interface hears raw 802.11 without associating to anything. airodump-ng surveys, then locks to one channel — the card can only listen on one frequency at a time, so picking the channel is picking the target. aireplay-ng -0 emits forged deauthentication frames with the AP's MAC as source; thirty of them in a burst is rude and effective. The client drops, re-associates, re-runs the 4-way handshake, and your running airodump-ng catches the EAPOL — a WPA handshake: AA:BB:CC:DD:EE:FF notice appears in the corner when it has all four frames (it only needs the first two to be crackable, but the display wants the full set).
Then hcxpcapngtool cap.pcapng -o hash.22000 converts the capture and hashcat -m 22000 hash.22000 wordlist -r rules does the grinding. The crack runs offline — nothing about it touches the target network, and it can run for weeks without anyone noticing traffic.
Why the forged frame works
A deauth frame is a management frame: header, reason code, done. Reason code 7 — "Class 3 frame received from nonassociated station" — is what you usually see, though the reason field is decoration; the client doesn't care why the AP supposedly dumped it. The frame arrives unauthenticated, is believed, and the client obeys. Nothing in WPA2 asks the AP to prove it sent one. The attacker borrows the AP's MAC in the source field — that's not spoofing in any clever sense, it's typing a broadcast MAC into a field the protocol trusts.
Variations on the same lever
- Broadcast deauths (no
-c) dump every client — more handshakes, more noise, more fingerprints in anyone's logs. - Handshake-free approach: skip aireplay entirely and pull a PMKID with
hcxdumptoolif the AP cooperates. - The patient approach: just capture. Clients rejoin all day; a deauth is a convenience, not a requirement.
- PMF-protected networks: forged deauths fail MIC validation and get dropped. On WPA3 the flood is a non-event; the capture toolset has to wait for a natural re-auth or find a WPA2 path.
Rules of engagement
Deauthing a network you don't own is an active attack on other people's infrastructure — in the US it has produced actual FCC enforcement against hotel chains that ran commercial deauth jammers. Authorized scope means your AP or a written engagement letter. The lab version — your router, your phone, a spare AP — teaches everything above with zero exposure.
What to do
- On defense: PMF is the fix that makes this workflow obsolete. Enable it.
- On audit: if the engagement includes wireless, the PMKID pull is quieter than a deauth burst — try it first.
- On your own gear: watch for deauth floods in Kismet or any WIDS. A burst of hundreds of reason-7 frames on one BSSID is not interference, it's an attack in progress — respond to it like one.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
The Same Researcher Broke apt the Same Way Twice, Seven Years Apart
In 2019 Max Justicz showed apt would install a package an attacker swapped in over a redirect. In November 2026 he did it again, CVE-2026-109518, through a different door that ends in the same place: code as root from a man in the middle. The fix shows how apt reuses files on disk.
A 257-Byte Password Is the Key: Inside the OpenSSH musl Bypass
CVE-2026-123158 lets an attacker log into a locked account on musl-based systems like Alpine by sending a password nobody set. The trigger is one number, 257, and the reason is a C library returning a single asterisk. I reproduced the exact boundary against musl 1.2.4 and read the fix.
Zero-Trust Access for Homelabbers: Teleport vs. Tailscale vs. WireGuard vs. Cloudflare Tunnel
Four tools solve four different problems that all get pitched as the same problem. Here's what each one does, where each one breaks, and the combination that covers a real homelab without paying an SSO tax you didn't see coming.
Zero Trust Everything: The Complete Guide to Self-Hosting Teleport for Secure Infrastructure Access
SudoSecurity runs Teleport internally for everything — admin panel access, secure database connections, Kubernetes, and zero-trust philosophy across our entire team. This is the complete technical guide to installing, configuring, and running your own self-hosted Teleport cluster from scratch.