Skip to content

Aircrack-ng

80 commands

The core of the Aircrack-ng suite: cracks WEP keys and WPA/WPA2-PSK handshakes captured from Wi-Fi networks.

  • Wi-Fi
  • WPA
  • cracking

Install Aircrack-ng

sudo apt install aircrack-ng

Suite Setup & Management6

airmon-ng

Displays the status of wireless interfaces and their current modes.

airmon-ng check

Identifies processes that might interfere with the wireless card's operation.

airmon-ng check kill

Terminates conflicting processes to ensure stability during capture and injection.

airmon-ng start <interface>

Enables monitor mode on the specified wireless interface.

Link
airmon-ng start <interface> <channel>

Enables monitor mode strictly on a specific channel to prevent hopping.

Link
airmon-ng stop <interface>

Disables monitor mode and returns the interface to managed mode.

Link

Network Discovery4

airodump-ng <interface>

Starts a basic capture to scan for all nearby access points and clients.

Link
airodump-ng --encrypt WPA <interface>

Filters the visual display to show only WPA/WPA2 encrypted networks.

Link
airodump-ng --encrypt WEP <interface>

Filters the visual display to show only WEP encrypted networks.

Link
airodump-ng --netmask <mask_int> <interface>

Filters access points based on a specific subnet mask.

Link

Capture File Handling2

airodump-ng -c <channel> --bssid <mac> -w <prefix> <interface>

Targets a specific AP on a specific channel and writes the capture to a file.

Link
airodump-ng --output-format pcap,csv -w <prefix> <interface>

Saves the capture data specifically in PCAP and CSV formats only.

Link

Injection Testing2

aireplay-ng --test <interface>

Tests if the wireless card supports packet injection and assesses link quality.

Link
aireplay-ng --test -e <essid> -a <bssid> <interface>

Tests injection capabilities against a specific target access point.

Link

Red Team Attack Simulation5

aireplay-ng --deauth <count> -a <bssid> -c <client> <interface>

Sends deauthentication packets to disconnect a specific client to force a handshake.

Link
aireplay-ng --fakeauth 0 -a <bssid> -h <my_mac> <interface>

Performs a fake authentication attack to associate with an AP for further injection.

Link
aireplay-ng --arpreplay -b <bssid> -h <my_mac> <interface>

Listens for ARP packets and replays them to generate new IVs for WEP cracking.

Link
aireplay-ng --chopchop -b <bssid> -h <my_mac> <interface>

Executes the KoreK chopchop attack to decrypt a WEP packet without the key.

Link
aireplay-ng --fragment -b <bssid> -h <my_mac> <interface>

Attempts the fragmentation attack to obtain a keystream specifically for WEP.

Link

Basic Aircrack-ng Syntax3

aircrack-ng --help

Displays the manual page with all available flags and options.

Link
aircrack-ng -u

Displays CPU information and supported hardware instructions like SSE2.

Link
aircrack-ng <capture_file>

Loads a capture file and attempts to auto-detect the encryption type and target.

Link

WEP Attack Workflows10

aircrack-ng -a 1 <capture_file>

Forces the tool to operate in WEP cracking mode regardless of auto-detection.

Link
aircrack-ng -n 64 <capture_file>

Restricts the cracking attempt to 64-bit WEP keys only.

Link
aircrack-ng -n 128 <capture_file>

Restricts the cracking attempt to 128-bit WEP keys only.

Link
aircrack-ng -b <bssid> <capture_file>

Filters the capture file to crack only the network matching the specified BSSID.

Link
aircrack-ng -f <factor> <capture_file>

Adjusts the brute-force fudge factor to try lower probability keys.

Link
aircrack-ng -k <int> <capture_file>

Disables one of the 17 KoreK attacks to troubleshoot false positives.

Link
aircrack-ng -x <capture_file>

Disables the last two keybytes bruteforce to speed up the process.

Link
aircrack-ng -y <capture_file>

Enables the experimental single-threaded brute-force mode for WEP.

Link
aircrack-ng -K <capture_file>

Invokes the KoreK attack mode specifically (usually default for WEP).

Link
aircrack-ng -z <capture_file>

Invokes the PTW (Pyshkin-Tews-Weinmann) attack method which requires fewer IVs.

Link

WPA Cracking Basics3

aircrack-ng -a 2 -w <wordlist> <capture_file>

Initiates a WPA/WPA2 dictionary attack using a provided wordlist.

Link
aircrack-ng -e <essid> -w <wordlist> <capture_file>

Filters the capture file to target a specific network name (ESSID).

Link
aircrack-ng -b <bssid> -w <wordlist> <capture_file>

Filters the capture file to target a specific MAC address (BSSID).

Link

Performance Tuning2

aircrack-ng -S <capture_file>

Shows the cracking speed in keys per second without actually cracking.

Link
aircrack-ng -p <cores> -w <wordlist> <capture_file>

Explicitly sets the number of CPU threads/cores to use for the attack.

Link

Advanced Cracking3

aircrack-ng -E <file> -w <wordlist> <capture_file>

Creates an Elcomsoft Wireless Security Auditor (EWSA) project file.

Link
aircrack-ng -J <file> <capture_file>

Extracts the handshake and saves it to a new, smaller .hccap file.

Link
aircrack-ng -j <file> <capture_file>

Extracts the handshake and saves it to a new .hccapx file for Hashcat.

Link

Output and Logging2

aircrack-ng -l <file> -w <wordlist> <capture_file>

Writes the successfully cracked key to a specified text file.

Link
aircrack-ng -q -w <wordlist> <capture_file>

Runs in quiet mode, suppressing status output until a key is found.

Link

Database Workflows5

airolib-ng <db_file> --import cowpatty <file>

Imports a Cowpatty rainbow table into an Aircrack-ng database file.

Link
airolib-ng <db_file> --import passwd <file>

Imports a text wordlist into an Aircrack-ng database file for pre-computation.

Link
airolib-ng <db_file> --import essid <file>

Imports a list of ESSIDs into the database for PMK calculation.

Link
airolib-ng <db_file> --batch

Calculates the PMKs (Pairwise Master Keys) for the loaded ESSIDs and passwords.

Link
aircrack-ng -r <db_file> <capture_file>

Uses a pre-computed airolib-ng database for faster WPA cracking.

Link

Blue Team Defensive Validation5

aircrack-ng --simd-list

Lists the available SIMD architectures to verify optimization support on the host.

Link
airdecap-ng -l

Lists the supported encryption types for decryption validation.

Link
airdecap-ng -b <bssid> <capture_file>

Attempts to decrypt the capture file using only the BSSID (validates unencrypted data).

Link
airdecap-ng -e <essid> -p <password> <capture_file>

Decrypts a WPA capture file using the known valid password to verify traffic visibility.

Link
airdecap-ng -w <hex_key> <capture_file>

Decrypts a WEP capture file using the known hexadecimal key.

Link

Purple Team Detection Testing3

aircrack-ng -C <mac> -w <wordlist> <capture_file>

Merges two or more APs into a virtual one (useful for testing roaming handshakes).

Link
aireplay-ng --deauth 1 -a <bssid> <interface>

Sends a single deauth frame to test if the IDS/IPS logs the specific anomaly.

Link
aireplay-ng --fakeauth 6000 -o 1 -q 10 <interface>

Sends keep-alive packets to test how the infrastructure handles prolonged fake sessions.

Link

Forensic Analysis2

ivstools --convert <capture_file> <output_ivs>

Converts a standard capture file to the IVS format to reduce file size.

Link
ivstools --merge <ivs_file1> <ivs_file2> <output_ivs>

Merges multiple IVS files into a single file for a consolidated cracking attempt.

Link

Advanced Workflow Integration3

airbase-ng -e <essid> -c <channel> <interface>

Creates a soft access point to lure clients for a rogue AP attack workflow.

Link
airbase-ng -P -C 30 <interface>

Configures the soft AP to respond to all probe requests (Karma attack behavior).

Link
wpaclean <out_file> <in_file>

Cleans the capture file by removing beacons and management frames, keeping only the 4-way handshake.

Link

Automation & Pipelines3

aircrack-ng -w - <capture_file>

Reads passwords from standard input (stdin), allowing piping from other tools like John the Ripper.

Link
airodump-ng --beacons --gpsd -w <prefix> <interface>

Records GPS coordinates for every packet (requires GPSD) for wardriving maps.

Link
aircrack-ng -s <capture_file>

Shows the ASCII version of the key alongside the hex version.

Link

Incident Response Simulation2

airtun-ng -a <bssid> -t 1 <interface>

Creates a virtual tunnel interface to monitor encrypted traffic in real-time (requires key).

Link
packetforge-ng -0 -a <bssid> -h <source_mac> -k <ip> -l <ip> -w <file>

Forges an ARP request packet for injection validation during an incident investigation.

Link

Cracking Optimization4

aircrack-ng -D <capture_file>

Disables the complex WEP masking (experimental optimization).

Link
aircrack-ng -M <int> <capture_file>

Specifies the maximum number of IVs to use for the attack.

Link
aircrack-ng -t <mac> <capture_file>

Filters traffic by the destination MAC address for specific client targeting.

Link
aircrack-ng -m <mac> <capture_file>

Matches packets specifically by the BSSID mac address filter.

Link

Legacy WEP Specifics2

aircrack-ng -1 <capture_file>

Runs the attack once and exits if the key is not found immediately.

Link
aircrack-ng -6 <capture_file>

Enables the semi-passive attack mode (rarely used).

Link

Clean Up2

airmon-ng stop <interface>mon

Properly destroys the monitor mode interface created earlier.

Link
rm <prefix>-*.cap <prefix>-*.csv

Removes the raw capture files and logs to sanitize the workspace.

Link

Advanced Combined Workflow5

airodump-ng -c 1 --bssid <mac> -w capture wlan0mon & aireplay-ng --deauth 5 -a <mac> wlan0mon

Simultaneously starts a capture and sends deauth packets in a single command line.

Link
aircrack-ng -w wordlist.txt -l key.txt *.cap

Attempts to crack using all capture files in the current directory and logs the key.

Link
aircrack-ng -K -b <bssid> *.ivs

Uses the KoreK method on all IVS files in the directory for a WEP attack.

Link
airbase-ng -a <bssid> --essid <essid> -W 1 wlan0mon

Sets up a Rogue AP with WEP encryption enabled (-W 1) for a specific target.

Link
airbase-ng -a <bssid> --essid <essid> -Z 2 wlan0mon

Sets up a Rogue AP with WPA2 encryption enabled (-Z 2).

Link

System Maintenance1

aircrack-ng --check

Checks if the aircrack-ng binary is patched or original (useful for distribution verification).

Link

Help and Documentation1

man aircrack-ng

Opens the full system manual for the most detailed documentation available.

Link