Where this falls
What you should actually learn here
This is the longest module in the course, but the exam-and-engagement payload is small. If you remember nothing else, remember these six things. Everything below is detail hanging off them.
Every frame's job is set by Type (0/1/2/3) and Subtype. Filter on these constantly.
Every client joins the same way. WPA/OWE add a 4-way handshake after.
Advertises the network. Privacy bit + RSN/WPA tags tell you the encryption.
One is normal. A flood is an attack. This is your whole attack signal.
The 4-way handshake you capture (then crack offline) rides on EAPoL frames.
These two bits decide what the 3-4 MAC address fields actually mean.
01 · Vocabulary
Packet vs frame
Not interchangeable. They live on different floors of the OSI model. A frame is layer 2 (Data Link); a packet is layer 3 (Network). In Wi-Fi we work almost entirely at layer 2, so we capture frames, even though everyone says "packet capture".
Table 1 idea — frame (L2) carries packet (L3) carries the data.
Frame = envelope, Packet = letter. You grab envelopes off the air (layer 2). Inside each is a letter (the IP packet, layer 3). "Packet capture" is a nickname; you're really catching frames.
02 · Structure
Frame anatomy
Every 802.11 MAC frame has three parts. In a capture, the driver often bolts a radiotap header on the front with radio metadata (signal, rate, channel).
Not part of the real frame. Signal level, data rate, channel. Size varies per driver, even per frame.
Frame Control, Duration, addresses, sequence. The first fields are always present.
Carries data or extra info. Some frames (ACK, RTS) have none at all.
Integrity check. Recomputed at the receiver; mismatch = corrupt frame. Sometimes stripped from captures.
"Radio, Head, Body, Check" = the frame front to back. Radiotap (fake, added by your card) · MAC Header (who/what) · Body (payload, maybe empty) · FCS (did it arrive clean).
03 · The brain of the header
Frame Control field
The most important field in the header. It holds the Type and Subtype that define what the frame is, plus a row of 1-bit flags that tell a story about the sender's state.
| Field | Tells you |
|---|---|
| Type | The frame family: Management (0), Control (1), Data (2), Extension (3). Most important field in the frame. |
| Subtype | The exact function within the family (beacon, deauth, ACK, etc). |
| To DS / From DS | Is the frame entering or leaving the distribution system. Decodes the addresses (next section). |
| Retry | This frame is a retransmission (an earlier copy went unacknowledged). Shows as R in the Info column. |
| Power Mgmt | Sender going to power-save (1) or active (0). Null frames use this. |
| Protected Frame | Encryption/authentication is in use on this frame. |
| More Frag / More Data | More fragments follow / AP has buffered data for a sleeping client. |
| Protocol Version | Always 0 today. |
wlan.fc.type == 0 for management, wlan.fc.type_subtype == 8 for beacons. Learn the subtype numbers and you can read any capture.
Sequence Control (bonus field)
Two subfields used to spot duplicate frames: a Sequence Number (0-4095, wraps) and a Fragment Number (0-15). Fragments of one frame share the sequence number.
04 · The part everyone finds confusing
The address puzzle
802.11 frames carry up to four MAC address fields, and what each one means depends entirely on the To DS and From DS bits. This table is worth memorizing; it's the one people get asked about.
| From | To | Scenario | Addr 1 | Addr 2 | Addr 3 | Addr 4 |
|---|---|---|---|---|---|---|
| 0 | 0 | Ad-hoc / mgmt / control | Dest | Source | BSSID | - |
| 0 | 1 | Client → AP (e.g. your ping out) | BSSID | Source | Dest | - |
| 1 | 0 | AP → client (the ping reply) | Dest | BSSID | Source | - |
| 1 | 1 | WDS (AP ↔ AP bridge) | RX | TX | Dest | Source |
Both bits 0 = nobody's using an AP (ad-hoc or pure control/mgmt). ToDS=1 = heading into the network (client talking up to the AP). FromDS=1 = coming out of the network (AP talking down to the client). Both 1 = two APs bridging, which is the only time the 4th address appears.
Picture a post office (the DS/AP). To it, from it, or two post offices passing a bag between them.
05 · The map
Three frame families
Type 3 (Extension) is rare, skip it. The three that matter each have a clear job.
Figure — the three families and their common members.
0-1-2 = "Manage, Control, Carry". Management (0) sets up the relationship, Control (1) keeps delivery orderly, Data (2) carries your traffic. Same order as a project: manage it, control it, do the work.
06 · Type 0
Management frames
These run the AP-client relationship. Learn the starred subtypes cold; they appear in every attack.
| # | Frame | What it does |
|---|---|---|
| 0 | Association Request ★ | Client asks to join |
| 1 | Association Response ★ | AP accepts/rejects |
| 2 | Reassociation Request | Roaming to a new AP |
| 3 | Reassociation Response | |
| 4 | Probe Request ★ | Client scans "anyone there?" |
| 5 | Probe Response ★ | AP answers with its details |
| 8 | Beacon ★ | AP broadcasts itself ~10×/sec |
| 10 | Disassociation | Graceful "we're done" |
| 11 | Authentication ★ | Same frame both ways (no req/resp) |
| 12 | Deauthentication ★ | Kills the auth. Attack weapon. |
| 13 | Action | Misc (e.g. SA Query, block-ACK setup) |
The five numbers to tattoo: 8, 4/5, 11, 0/1, 12. Beacon 8 (always on), Probe 4/5 (scan), Auth 11, Assoc 0/1, Deauth 12. That's the entire join sequence plus the attack frame, in five numbers.
Beacon: the network's business card
Sent ~10 times/second at the lowest rate so far clients hear it. Carries SSID, channel, supported rates, encryption, country/regulatory info, and capability flags (HT/VHT/HE = 802.11n/ac/ax). Payload splits into fixed parameters (timestamp, beacon interval, capabilities) and Information Elements (IEs): variable tags, each [ID][length][data].
Authentication: one frame, both directions
There's no separate auth request/response. The same frame type flows both ways, tracked by a Transaction Sequence Number (1-4) and a Status Code (0 = success). The Authentication Algorithm field tells you the method: Open (common), SAE (WPA3), or Shared (WEP, rare).
Deauthentication: the attacker's crowbar
A 2-byte Reason Code frame that invalidates the auth. Legit uses exist (disconnect, forced reauth), but a flood of deauths = an attack in progress (classic aireplay-ng, reason code 7). You send these to knock a client off so it reconnects and you catch the handshake.
07 · Type 1
Control frames & RTS/CTS
Short, sent at low rates so they're heard reliably. They keep data delivery orderly and collision-free.
| # | Frame | Role |
|---|---|---|
| 8 | Block ACK Request | Ask to acknowledge a batch |
| 9 | Block ACK | Acknowledge many frames at once (throughput) |
| 10 | PS-Poll | Sleepy client asks AP for buffered data |
| 11 | RTS ★ | "Request to Send" — may I talk? |
| 12 | CTS ★ | "Clear to Send" — go ahead, everyone else wait |
| 13 | ACK ★ | "Got it" — sent for every unicast frame |
The RTS/CTS collision dance
An optional supplement to CSMA/CA that cuts collisions when two nodes can't hear each other. Costs overhead, so it's used selectively.
Figure — RTS/CTS/Data/ACK. Everyone who hears the CTS stays quiet for the duration. CTS has the same shape as ACK.
11-12-13 = "Ask, Allow, Acknowledge". RTS asks (11), CTS allows (12), ACK acknowledges (13). Three consecutive numbers for the three polite steps of talking on a shared channel.
08 · Type 2
Data frames
Sixteen subtypes exist, but four carry the load. The key split is plain vs QoS (prioritized voice/video, which adds a QoS Control field).
| # | Frame | Use |
|---|---|---|
| 0 | Data | Ordinary payload |
| 4 | Null Function | No payload — carries the power-save bit only |
| 8 | QoS Data | Prioritized payload (voice/video) |
| 12 | QoS Null | QoS version of null |
Null frames: the sleep signal
Just a MAC header + FCS, no data. A client sends one with the Power Management bit set to tell the AP "I'm napping, buffer my traffic." It sends another with the bit cleared on waking, and the AP releases the buffered frames.
Null = "going to sleep" note. No payload, just the Power-Mgmt bit flipped. The client slips the AP a note that says "hold my calls," then another that says "I'm back."
09 · The core sequence
The connection dance
Every client joins every network the same three-step way. Encryption only adds a step on the end.
"PAA(K)" = Probe, Auth, Assoc, (Keys). Scan, prove, join, (lock). The first three are universal. The K only shows up when there's encryption. On an open network you're online after step 3; on WPA you need step 4.
10 · The whole point of the module
How the dance changes per encryption
This single table replaces most of the module's second half. Same PAA skeleton, different auth method and key step.
| Type | Beacon says | Auth method | Key exchange | Attack hook |
|---|---|---|---|---|
| Open | Privacy off | Open (2 frames) | none | everything is plaintext |
| WEP | Privacy on, no RSN/WPA | Open or Shared (challenge) | none (WEP key) | IV crack |
| WPA1 | WPA IE, TKIP | Open | 4-way (EAPoL) | capture handshake, crack PSK |
| WPA2 | RSN IE, CCMP | Open | 4-way (EAPoL), PMKID in msg 1 | handshake or PMKID |
| WPA3 | RSN IE, SAE, PMF | SAE in auth (commit/confirm) | 4-way after SAE | no offline crack; transition mode |
| OWE | RSN IE, OWE, PMF | Open | DH in association → 4-way | rogue AP (active only) |
WPA3 moves the magic into AUTH; OWE moves it into ASSOC. WEP/WPA/WPA2 all use plain Open auth and do their crypto in (or after) association. WPA3's SAE "Dragonfly" happens during the authentication frames. OWE's Diffie-Hellman happens inside the association frames. That's the one distinction people trip on.
!(wlan.fc.type == 1) to hide the noisy control frames (ACK/RTS/CTS) so the probe/auth/assoc/handshake story is readable top to bottom.
11 · The frames you crack
EAPoL & the 4-way handshake
EAPoL-Key frames carry the 4-way handshake for WPA/WPA2/WPA3/OWE (and show up in WPS and 802.11w). These four frames are the single most valuable thing you capture.
Figure — the 4-way handshake. Capture M1+M2 and you have the material to crack the PSK offline (module 02).
What to recognise in an EAPoL-Key frame
2 means WPA2 (RSN), 254 means WPA1. Instant version tell.
1 for messages 1-2, 2 for messages 3-4. Higher = retries (bad key or weak signal).
ANonce (M1) then SNonce (M2). The two randoms that seed the PTK.
Message integrity check. This is what an offline cracker recomputes per password guess.
Install (bit 6) tells the client to install keys; Secure (bit 9) set in M3/M4.
Carries the GTK (M3) and cipher info. RSNE starts 0x30, KDE starts 0xdd.
Replay counter: "1,1,2,2". M1 and M2 share counter 1; M3 and M4 share counter 2. If you see counters climbing past 2, the handshake is struggling (wrong key, bad signal), which is a clue in itself.
12 · The 8-message exchange
WPS: M1 to M8
A WPS PIN exchange runs eight EAP messages (M1-M8) back and forth to confirm the PIN and hand over the passphrase in M8. The milestone to remember: the PIN is checked in two halves, which is the whole weakness.
| Msg | Carries | Milestone |
|---|---|---|
| M1 | Enrollee nonce, public key, device info | who wants in |
| M2 | Registrar nonce + public key (AP info) | who grants access |
| M3 | E-Hash1 / E-Hash2 | |
| M4 | R-S1 | first half of PIN validated |
| M5 | E-S1 | |
| M6 | R-S2 | second half validated |
| M7 | E-S2 | |
| M8 | Encrypted network settings | passphrase delivered |
M4 = first half, M6 = second half, M8 = the prize. Because the PIN validates in two separate chunks (confirmed around M4 and M6), brute force drops from 10⁸ to ~11,000 guesses. M8 is where the actual Wi-Fi passphrase arrives. (Attack details in module 02.)
13 · Why deauth stops working
802.11w & the SA Query
802.11w (PMF) protects management frames so a spoofed deauth is ignored. The capture shows the defence in action: an attacker's deauth arrives, but the client and AP run an SA Query to confirm each other and simply carry on.
Figure — with PMF, a deauth attack fails because only the real, keyed peer can answer the SA Query.
14 · Test yourself
Recall quiz
Answer out loud before tapping. Clear all ten and the frame numbers are yours.