Skip to content

Advanced Aircrack ng Commands

github-actions[bot] edited this page Nov 15, 2026 · 1 revision

Reference index and audit status: Reviewed cheat sheets and references.

Warning

Reviewed October 31, 2026. This is a legacy/professional lab command reference. Injection, deauthentication, WEP replay and WPS tests are active transmissions, not passive monitoring, and can disrupt networks. Require a written scope and lab AP; do not treat default interface names, driver support, PMF negotiation or WPA3-SAE behavior as interchangeable. Prefer the Wi-Fi detection and PMF reference for passive incident analysis, the Wardriving index for surveying and the official aircrack-ng documentation for supported command syntax.

๐ŸŽฏ Purpose

Command reference for the aircrack-ng suite covering the full traditional Wi-Fi lab auditing workflows, including passive monitoring and separately authorized active deauthentication/WEP/WPS testing. This is the active-deauth approach, as opposed to the passive PMKID method covered in hcxtoolshashcat.md.

โš™๏ธ Function

Organized by workflow phase and attack type: basic WPA/WPA2 handshake workflow, advanced deauth options, WEP cracking, WPS attacks, airodump/aireplay advanced flags, and file format conversion. Unlike hcxtoolshashcat.md (which uses hcxtools for passive capture and Hashcat mode 22000), this file uses aircrack-ng's own cracking engine and covers legacy formats including WEP and WPS PIN attacks that hcxtools does not address.

๐Ÿ† Goal

Capture a WPA handshake or recover a WEP/WPS key using the aircrack-ng toolkit, then crack the resulting hash via dictionary attack.

๐Ÿ“‹ When to Use

  • When evaluating AP/client response to active disconnection in an explicitly authorized isolated lab, not routine troubleshooting
  • When targeting WEP networks (aircrack-ng is the standard tool for IV-based WEP cracking)
  • When running WPS PIN attacks with Reaver/Pixiedust
  • When hcxtools is unavailable or the target network has no PMKID
  • When you want to use aircrack-ng's built-in CPU-based cracker rather than GPU (Hashcat)

Basic Workflow

1. Enable Monitor Mode

sudo airmon-ng check kill          # Kill interfering processes (NetworkManager, wpa_supplicant)
sudo airmon-ng start wlan1         # Enable monitor mode (creates wlan1mon)

2. Scan for Networks

sudo airodump-ng wlan1mon                                              # Scan all channels
sudo airodump-ng -c 6 --bssid XX:XX:XX:XX:XX:XX wlan1mon             # Target specific AP

3. Capture Handshakes

sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan1mon

4. Deauth Attack (Force Handshake)

sudo aireplay-ng --deauth 10 -a AA:BB:CC:DD:EE:FF wlan1mon           # Deauth all clients
sudo aireplay-ng --deauth 10 -a AA:BB:CC:DD:EE:FF -c CLIENT:MAC wlan1mon  # Target specific client

Advanced Techniques

WPA/WPA2 Cracking (aircrack-ng built-in)

# Dictionary attack
aircrack-ng -w /path/to/wordlist.txt -b AA:BB:CC:DD:EE:FF capture-01.cap

# With ESSID filter
aircrack-ng -w wordlist.txt -e "NetworkName" capture-01.cap

# Using multiple CPU cores
aircrack-ng -w wordlist.txt capture-01.cap -p 4

GPU cracking: For faster cracking, convert the .cap to Hashcat's unified format and use mode 22000. See hcxtoolshashcat.md for the conversion workflow.

WEP Cracking

# Fake authentication
sudo aireplay-ng --fakeauth 0 -a AA:BB:CC:DD:EE:FF -h YOUR:MAC wlan1mon

# ARP replay attack (generates IVs)
sudo aireplay-ng --arpreplay -b AA:BB:CC:DD:EE:FF -h YOUR:MAC wlan1mon

# Crack WEP key (run once you have 20,000+ IVs)
aircrack-ng capture-01.cap

WPS Attacks

# Scan for WPS-enabled networks
sudo wash -i wlan1mon

# Reaver online brute force (WPS PIN)
sudo reaver -i wlan1mon -b AA:BB:CC:DD:EE:FF -vv

# Pixie Dust attack (offline - exploits weak random number generation)
sudo reaver -i wlan1mon -b AA:BB:CC:DD:EE:FF -vv -K

PMKID Attack (Clientless - No Deauth Needed)

# Capture PMKID passively
# hcxdumptool options have changed by version; verify `hcxdumptool --help`.
# Use approved passive capture (dumpcap/Kismet) rather than assuming this
# command is passive or compatible with every build.

# Convert to Hashcat unified format (mode 22000)
hcxpcapngtool -o pmkid.hc22000 pmkid.pcapng

# Crack with Hashcat
hashcat -m 22000 pmkid.hc22000 wordlist.txt

For the full passive PMKID workflow, see hcxtoolshashcat.md.


Airodump-ng Advanced Options

# Save only handshakes in pcap format
sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture --output-format pcap wlan1mon

# Show hardware manufacturers
sudo airodump-ng --manufacturer wlan1mon

# Focus on 5GHz band
sudo airodump-ng --band a wlan1mon

# Show only WPA networks
sudo airodump-ng --encrypt wpa wlan1mon

Aireplay-ng Advanced Options

# Continuous deauth (use with caution - disrupts all clients)
sudo aireplay-ng --deauth 0 -a AA:BB:CC:DD:EE:FF wlan1mon

# Interactive packet replay
sudo aireplay-ng --interactive wlan1mon

# Fragmentation attack (generates keystream for WEP)
sudo aireplay-ng --fragment -b AA:BB:CC:DD:EE:FF -h YOUR:MAC wlan1mon

# Chopchop attack (decrypts WEP packet without key)
sudo aireplay-ng --chopchop -b AA:BB:CC:DD:EE:FF -h YOUR:MAC wlan1mon

Converting Capture Files

# Convert .cap to pcapng (required for hcxpcapngtool input)
editcap -F pcapng capture-01.cap capture-01.pcapng

# Convert pcapng to Hashcat unified format (mode 22000)
hcxpcapngtool -o output.hc22000 capture-01.pcapng

# Merge multiple capture files
mergecap -w merged.cap capture-*.cap

# Clean/filter capture file
wpaclean cleaned.cap capture-01.cap

Cracking with Hashcat (mode 22000)

# Compatible WPA-PBKDF2 PMKID/EAPOL captures use Hashcat mode 22000;
# WPA3-SAE is NOT covered by a generic WPA2 dictionary-cracking workflow.
hashcat -m 22000 output.hc22000 wordlist.txt

# With rules
hashcat -m 22000 output.hc22000 wordlist.txt -r rules/best64.rule

Cracking with John the Ripper

hccap2john capture.hccap > hash.txt
john --wordlist=wordlist.txt hash.txt

Additional Resources ๐Ÿ“š


Security and Ethical Considerations โš ๏ธ

IMPORTANT: These tools are for authorized security testing only. Unauthorized use is illegal.

  • Get written permission before testing any network. Only test networks you own or have explicit authorization to test.
  • All cracking attempts must be done in an isolated lab environment against hashes you are authorized to possess.
  • Strictly comply with all local laws and regulations.

Legal Use Cases:

  • Penetration testing with client authorization
  • Testing your own home or lab network security
  • Security research in isolated lab environments

Related Files


๐Ÿ“„ Source: Documentation/Aircrack-ng_Commands.md | โœ๏ธ Suggest an edit | โฌ…๏ธ Back to Technical Guides & Cheat Sheets

Clone this wiki locally