aircrack-ng

Crack WEP and WPA/WPA2 wireless encryption keys

TLDR

Crack WPA/WPA2 with wordlist
$ aircrack-ng -w [wordlist.txt] [capture.cap]
Crack WEP with captured IVs
$ aircrack-ng [capture.cap]
Specify target BSSID
$ aircrack-ng -b [00:11:22:33:44:55] [capture.cap]
Use multiple wordlists
$ aircrack-ng -w [list1.txt],[list2.txt] [capture.cap]
Show cracking statistics
$ aircrack-ng -S [capture.cap]

SYNOPSIS

aircrack-ng [-w wordlist] [-b bssid] [-e essid] [options] capture-file

DESCRIPTION

aircrack-ng is a WiFi security auditing tool that cracks WEP and WPA/WPA2-PSK encryption keys. For WPA/WPA2, it uses dictionary attacks against captured 4-way handshakes. For WEP, it exploits cryptographic weaknesses using statistical methods.The tool reads packet capture files containing wireless traffic, identifies encryption types and captured handshakes, and attempts to recover the passphrase.

PARAMETERS

-w file

Wordlist for WPA/WPA2 cracking
-b bssid
Target access point MAC address
-e essid
Target network name
-a mode
Attack mode (1: WEP, 2: WPA/WPA2)
-l file
Write found key to file
-q
Quiet mode (no status display)
-S
WPA cracking speed test (benchmark)
-p threads
Number of CPU threads to use
-K
Use KoreK attack instead of PTW for WEP cracking (PTW is the faster modern default)
-x
Disable last keybyte brute-force (WEP). -x1 enables (default), -x2 brute-forces last two keybytes
-y
Experimental single brute-force attack, used when standard attacks fail with over 1 million IVs
-z
Use PTW attack for WEP cracking (default)
-D, --wep-decloak
WEP decloak mode, skips broken keystreams
-M num
Maximum number of IVs to use for WEP cracking
-1, --oneshot
Run only one try to crack key with PTW

INSTALL

sudo apt install aircrack-ng
sudo dnf install aircrack-ng
sudo pacman -S aircrack-ng
sudo apk add aircrack-ng
sudo zypper install aircrack-ng
brew install aircrack-ng
nix profile install nixpkgs#aircrack-ng

CAVEATS

For authorized security testing only. WPA/WPA2 cracking requires a captured 4-way handshake. Success depends on wordlist quality; complex passwords may be uncrackable. GPU-accelerated tools like hashcat are faster for WPA.

HISTORY

aircrack-ng evolved from the original aircrack tool, with the "-ng" (next generation) version first released in 2006. It became the standard open-source WiFi security assessment toolkit.

SEE ALSO

airodump-ng(1), aireplay-ng(1), hashcat(1)