Skip to content
Pwnversity
WIFIbasic · 6 min · upd. 2026-10

WiFi Fundamentals and Attacks

WiFi (IEEE 802.11) is a network that travels through the air, so anyone within range can listen to it, interfere with it, or try to join. WiFi pentesting combines understanding the protocol (channels, management frames, encryption modes) with the right hardware (a card with monitor mode and injection) to capture handshakes, crack keys, spoof access points, and attack clients. This card is the base of the area; each specific attack has its own card.

Attacking other people’s WiFi networks is illegal. Everything below is for your own network, a lab you built yourself, or an engagement with written authorization and a defined scope.

The medium is shared and cannot be physically contained: the signal leaves the building. An attacker within coverage range can act passively (listen to beacons, probes, management traffic, and capture handshakes) without transmitting anything, or actively (inject deauth, stand up a fake AP, brute-force WPS). The 802.11 management frames (beacon, probe, deauth, disassoc) travel unencrypted and unauthenticated unless 802.11w (PMF) is enabled, which makes deauthentication a cross-cutting primitive. The real surface depends on the encryption (Open/WEP/WPA2/WPA3), whether WPS is active, the strength of the PSK, and whether clients validate the server certificate on Enterprise networks.

An AP announces the network by broadcasting beacons with its SSID, BSSID (its MAC), channel, and encryption capabilities. A client (STA) looking for known networks sends probe requests; on associating it runs authentication + association and, in WPA2/WPA3-PSK, a 4-way handshake that derives the session keys from the PSK without transmitting it. Key concepts:

  • SSID / ESSID: network name. BSSID: the AP’s MAC. Several radios can share an ESSID.
  • STA: client. AP: access point. Channel: frequency (2.4 GHz: 1-14; 5 GHz: 36+; 6 GHz on WiFi 6E).
  • Beacon: frame announcing the network. Probe: a client looking for known networks (leaks its history).
  • Encryption, worst to best: Open (no encryption), WEP (broken, RC4 + weak IV), WPA/WPA2 (PSK with the 4-way handshake, or Enterprise with 802.1X/EAP), WPA3 (SAE/Dragonfly + mandatory PMF).
flowchart TD
    A[Card in monitor mode] --> B[Recon: airodump-ng / kismet]
    B --> C{Target encryption}
    C -->|Open/WEP| D[Direct capture / crack IVs]
    C -->|WPA2-PSK| E[Handshake or PMKID -> crack offline]
    C -->|WPS enabled| F[Pixie Dust / PIN bruteforce]
    C -->|WPA3 / Enterprise| G[Downgrade / evil twin RADIUS]
    E --> H[hashcat -m 22000]
    F --> H

Most attacks need a card that supports monitor mode (capture all air traffic, not just what’s addressed to you) and packet injection (send arbitrary frames such as deauth). Typical well-supported chipsets: Atheros AR9271, Realtek RTL8812AU, Ralink/MediaTek. For 5/6 GHz you need a card that covers those bands.

Ventana de terminal
iw dev # list interfaces and capabilities
airmon-ng # see compatible cards
airmon-ng check kill # kill interfering processes (NetworkManager)
airmon-ng start wlan0 # monitor mode -> usually wlan0mon

Without monitor mode + injection, most WiFi attacks aren’t possible.

Reconnaissance: discover networks and clients

Section titled “Reconnaissance: discover networks and clients”
Ventana de terminal
airodump-ng wlan0mon # all networks: BSSID, channel, encryption, clients
airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0mon # focus one AP and save
kismet # passive detection and mapping
wash -i wlan0mon # APs with WPS enabled

From this you get: which networks exist, their encryption, which clients are connected, and which channel to target.

  • WEP: trivial cracking (historical); with enough IVs the key falls in minutes.
  • WPA/WPA2-PSK: capture a handshake or PMKID and crack offline (see WPA/WPA2/WPA3 Attacks).
  • WPS: PIN bruteforce or Pixie Dust (see WPS Attacks).
  • Evil Twin: fake AP + captive portal / fake RADIUS (see Evil Twin and Captive Portals).
  • Deauth: disconnect clients (DoS or force a reconnect to capture a handshake).

Red Team: deauthentication (the cross-cutting primitive)

Section titled “Red Team: deauthentication (the cross-cutting primitive)”

Deauthentication frames in WPA2 are not protected, so you can kick clients at will on your own test network:

Ventana de terminal
aireplay-ng --deauth 5 -a AA:BB:CC:DD:EE:FF -c 11:22:33:44:55:66 wlan0mon # specific client
aireplay-ng --deauth 0 -a AA:BB:CC:DD:EE:FF wlan0mon # broadcast (0 = continuous)

Uses: DoS, forcing a client to reconnect to capture the handshake (wifi-wpa), or pushing clients toward an evil twin (wifi-eviltwin). wifite automates recon + deauth + capture + crack in a single tool.

  • WPA3 (or at least WPA2 with a long, random password — offline cracking depends entirely on PSK strength).
  • 802.11w (PMF): protects management frames and mitigates deauth, disassoc, and much of the push toward evil twins. Mandatory in WPA3.
  • Disable WPS (see wifi-wps) and WEP (broken).
  • WPA2/WPA3-Enterprise (802.1X) with EAP-TLS (certificates) instead of a shared PSK; enforce server certificate validation on clients (against evil twin RADIUS).
  • WIDS/WIPS to detect rogue APs and duplicate SSIDs; segment guest WiFi. Hiding the SSID is not real defense.
  • Card with monitor mode + injection (airmon-ng)
  • Recon of networks and clients (airodump-ng / kismet)
  • Identify each network’s encryption (Open/WEP/WPA2/WPA3)
  • APs with WPS enabled (wash)
  • Deauth for DoS or to force a handshake (on your own/authorized network)
  • WPA/WPA2-PSK: handshake + crack (WPA/WPA2/WPA3 Attacks)
  • WPS: PIN / Pixie Dust (WPS Attacks)
  • Evil twin / captive portal (Evil Twin and Captive Portals)
  • Blue: PMF, WPA3, Enterprise with certificate validation, WIPS?