Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Wireless attacks

Lab · Medium · 1.5 hoursFree account

WPS Attacks

Reaver and Bully WPS PIN brute force against vulnerable routers.

  • wps
  • reaver
  • bully
  • wi-fi
On this page 8 sections
  1. ·Build the target
  2. 1Detect WPS-enabled access points
  3. 2Online PIN brute force with reaver
  4. Locked: Switch tools when one AP resists reaver
  5. Locked: Offline recovery with Pixie-Dust
  6. Locked: Verify the fix
  7. Locked: Defence and Detection
  8. Locked: Check Your Work

Before you start

Wi-Fi Protected Setup lets a user join a network with an eight-digit PIN instead of the passphrase. The PIN splits into two halves of four digits each, so a brute force needs about 11,000 tries, which takes hours rather than years. Build reaver and bully runs against a weak router, recover the PIN, and read the WPA2 passphrase back from it.

What You'll Learn

  • Detect WPS-enabled access points and read their lock status
  • Run an online WPS PIN brute force with reaver and with bully
  • Run an offline Pixie-Dust attack against a weak-PRNG chipset
  • Recover the WPA passphrase once the PIN is known
  • Explain why PIN design makes brute forcing fast, not slow
  • Recommend disabling WPS as the only full fix

Build the target

KaliRange hosts no targets and no wireless range. Use the same access point you built for the WPA/WPA2 cracking lab — the SSID KaliRange-Lab, BSSID AA:BB:CC:DD:EE:FF and passphrase KaliRange123! below are that lab's example values. On it, turn WPS on.

  • A chipset known to be weak against Pixie-Dust (for example an older Ralink or Broadcom reference design) gives you the offline path in Step 4. If your AP has patched this, Steps 1 to 3 and 5 still work.

Tools and versions

  • Kali Linux 2025.x with a monitor-mode and injection-capable adapter (as in the WPA cracking lab).
  • aircrack-ng suite 1.7 (airmon-ng, airodump-ng) to bring the card up.
  • reaver 1.6.6 (the t6x fork shipped on Kali), which includes built-in Pixie-Dust support.
  • bully 1.1 as a second online implementation.

Test only the AP you built above (KaliRange-Lab in the examples below, or your own name for it). A WPS brute force sends thousands of authentication attempts and can lock or crash a real router. Never point these tools at a network you do not own or have written permission to test.

Step 1: Detect WPS-enabled access points

1

WPS lets a user push a button or type a short PIN instead of the real passphrase. You must know a target runs WPS, and whether it is locked, before you choose an attack.

sudo airmon-ng start wlan0
sudo wash -i wlan0mon

Example output:

BSSID              Ch  dBm  WPS  Lck  Vendor    ESSID
AA:BB:CC:DD:EE:FF   6  -40  2.0  No   Ralink    KaliRange-Lab

What to notice: WPS shows that version 2.0 is in use, and Lck (locked) reads No. A locked AP has refused too many PIN guesses and must be power-cycled or waited out before an online attack will work. Vendor matters too: some chipsets, including older Ralink and Broadcom designs, are known to be weak against the offline attack in Step 4.

Step 2: Online PIN brute force with reaver

2

The WPS PIN is 8 digits, but the 8th is a checksum of the first 7, and the AP verifies the first 4 digits and the last 3 separately. That cuts the real search space from 10^8 to about 11,000 guesses.

sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -c 6 -vv

Example output:

[+] Waiting for beacon from AA:BB:CC:DD:EE:FF
[+] Associated with AA:BB:CC:DD:EE:FF (ESSID: KaliRange-Lab)
[+] Trying pin 12345670
[+] Trying pin 12345678
[+] 14.29% complete @ 2026-11-19 22:10:03 (3 seconds/pin)
...
[+] Pin cracked in 4102 seconds
[+] WPS PIN: '12345670'
[+] WPA PSK: 'KaliRange123!'
[+] AP SSID: 'KaliRange-Lab'

What to notice: reaver reports a completion percentage and tries roughly one PIN every few seconds, because it must wait for a full WPS exchange each guess. At the end it prints both the 8-digit WPS PIN and the real WPA PSK, the same passphrase from the WPA cracking lab. If the AP locks after repeated failures, you see WPS transaction failed (code: 0x02), re-trying last pin messages; stop and wait, or move to Step 3.

A real router answers one guess every 1 to 4 seconds. At that rate, the full ~11,000-guess space takes hours, not seconds. This is why Pixie-Dust in Step 4 matters: it skips the online wait entirely on a weak chipset.

Sign in to continue

5 more sections are for signed-in members. It is free: sign in with Google.

Related