Skip to content
Pwnversity
WIFI-WPSintermediate · 5 min · upd. 2026-10

WPS Attacks

WPS (WiFi Protected Setup) lets you connect devices to WiFi by pressing a button or entering an 8-digit PIN, to avoid typing the long password. The problem: that PIN is a weak point that, badly implemented, lets you recover the network’s WPA password without cracking the handshake. It’s one of the most rewarding WiFi attacks when WPS is active, because it completely avoids offline key cracking.

Only against your own router or an authorized lab/engagement. Attacking the WPS of other people’s networks is illegal.

WPS exists for user convenience, but it exposes an authentication path parallel to the PSK. An attacker in range, with no credentials, can: recover the PIN by online brute force (slow, detectable, sometimes locked out), compute the PIN offline with Pixie Dust (fast, a single transaction, if the chipset is vulnerable), or try default / BSSID-derivable PINs. In every case, once the PIN is obtained the AP hands back the PSK in cleartext, so an extremely strong WPA password protects nothing if WPS is vulnerable.

The registration protocol validates the PIN in two independent halves: the first 4 digits and the next 3 (the 8th is a checksum). That reduces the search space from 10^8 to, at most, 10^4 + 10^3 = ~11,000 attempts. And Pixie Dust exploits the Registrar’s (Enrollee’s) weak generation of the E-S1/E-S2 nonces, letting you recover the PIN offline from a single transaction.

flowchart TD
    A[wash: AP with WPS enabled and not locked] --> B{Pixie Dust viable?}
    B -->|Vulnerable chipset| C[reaver -K 1: computes PIN offline in seconds]
    B -->|No| D[PIN bruteforce by two halves ~11k attempts]
    D -->|AP does WPS lock| E[Wait / try null or default PIN]
    C --> F[AP hands over the PSK in cleartext]
    D --> F
    E --> F
Ventana de terminal
wash -i wlan0mon # lists APs with WPS: version, state, and whether LOCKED

Key columns: WPS version and Lck (if not locked, it’s attackable).

Ventana de terminal
reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -c 6 -K 1 -vv # -K 1 enables pixiewps
# or run pixiewps directly on the captured values
# many old chipsets (Ralink, Realtek, Broadcom) are vulnerable -> PIN in seconds/minutes

If the chipset is vulnerable, the PIN is computed offline almost instantly and, with it, the PSK.

Ventana de terminal
reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -c 6 -vv # brute force by the two halves
bully -b AA:BB:CC:DD:EE:FF -c 6 wlan0mon # alternative
# on recovering the PIN, reaver also prints the WPA PSK

It can take hours, and some APs lock after several failures (WPS locked). reaver options like -d (delay) and -r help avoid the lockout.

Some APs accept an empty PIN or use default PINs derivable from the BSSID (databases known by vendor/MAC). airgeddon and wifite integrate these checks automatically.

Ventana de terminal
wifite # automates WPS (Pixie + bruteforce), WPA handshake, and PMKID
airgeddon # interactive menu with all WPS variants
  • Disable WPS entirely on the router: the definitive mitigation, and almost always unnecessary.
  • If you can’t: patched firmware (not vulnerable to Pixie Dust) and WPS lock after failed attempts.
  • Don’t use default PINs; prefer the button method (PBC) on demand only, never a permanent PIN.
  • A strong WPA password doesn’t protect you if WPS is active and vulnerable: WPS hands it over directly.
  • Monitor WPS attempt bursts with WIDS (brute-force pattern).
  • Discover APs with WPS enabled and their state (wash)
  • Pixie Dust first (reaver -K 1 / pixiewps) — fast
  • PIN bruteforce (reaver / bully) if Pixie fails
  • Null PIN / default PINs by vendor
  • Recover the WPA PSK from the PIN
  • Automate with wifite / airgeddon
  • Blue: WPS disabled, or patched + lock?
  • Document that WPS hands over the key without cracking it