Skip to content

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 client

airmon-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 hcxdumptool if 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?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.