GO KALI FREE

Aircrack-ng

Wireless Attacks

Intermediatemedium risk

Aircrack-ng is a complete suite of tools to assess WiFi network security. It focuses on different areas of WiFi security: monitoring, attacking, testing, and cracking.

Installation

sudo apt install aircrack-ng

Basic Syntax

aircrack-ng [options] <capture-file>

Quick Facts

Full Name
Aircrack-ng
License
GPL v2
Written In
C
Platforms
Linux, Windows, macOS
Category
Wireless Security
Tools Included
aircrack-ng, airodump-ng, aireplay-ng, airmon-ng, airdecap-ng
First Release
2004
Author
Thomas d'Otreppe

Tool Overview

Aircrack-ng is the most widely used wireless security auditing suite available for Kali Linux. It provides a complete toolkit for monitoring WiFi networks, capturing packets, and testing the security of wireless encryption protocols.

The suite includes airodump-ng for packet capture, aireplay-ng for packet injection and replay attacks, airmon-ng for managing monitor mode interfaces, and aircrack-ng itself for cracking WEP and WPA/WPA2 pre-shared keys.

Wireless security professionals rely on Aircrack-ng for authorized penetration testing, security audits, and research. Its comprehensive toolset covers the entire wireless assessment lifecycle from discovery to key recovery.

Common Commands

airmon-ngList interfaces - Show available wireless cards
airmon-ng start wlan0Enable monitor mode - Start packet capture interface
airmon-ng stop wlan0monDisable monitor mode - Return interface to managed mode
airmon-ng check killKill interfering processes - Stop NetworkManager or other processes
airodump-ng wlan0monScan networks - List all available wireless networks
airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0monCapture handshake - Target a specific network on a channel
airodump-ng --band abg wlan0monAll bands - Scan both 2.4GHz and 5GHz frequencies
airodump-ng --wps wlan0monWPS scan - Find access points with WPS enabled
airodump-ng --manufacturer wlan0monShow vendors - Display device manufacturers in capture list
aireplay-ng -0 10 -a AA:BB:CC:DD:EE:FF wlan0monDeauth attack - Disconnect clients to force a handshake
aireplay-ng -0 10 -a AA:BB:CC:DD:EE:FF -c CC:DD:EE:FF:00:11 wlan0monTargeted deauth - Disconnect a specific client from an AP
aireplay-ng -1 0 -e "NetworkName" -a AA:BB:CC:DD:EE:FF wlan0monFake auth - Fake associate with an access point
aireplay-ng -3 -b AA:BB:CC:DD:EE:FF wlan0monARP replay - Inject ARP packets to generate WEP IVs
aireplay-ng -2 -p 0841 -c FF:FF:FF:FF:FF:FF -b AA:BB:CC:DD:EE:FF wlan0monInteractive replay - Launch a custom packet injection attack
aircrack-ng -w wordlist.txt capture-01.capDictionary attack - Crack WPA/WPA2 capture keys offline

Step-by-Step Guide

  1. 1Switch your networking hardware into packet capture mode
  2. 2Identify surrounding wireless networks
  3. 3Select a specific target relying on its MAC address and operating channel
  4. 4Begin recording the localized traffic
  5. 5Broadcast disconnect packets to force devices to reconnect
  6. 6Watch the terminal to confirm a successful handshake capture
  7. 7Process the captured file locally to discover the password

Warnings

Use Cases

Wireless Network Auditing

Assess the security of wireless networks by testing encryption strength and identifying weak configurations.

WEP Key Cracking

Recover WEP keys by capturing initialization vectors and performing statistical cracking attacks.

WPA/WPA2 Handshake Capture

Capture the 4-way handshake during client authentication for offline dictionary cracking.

Packet Injection Testing

Test network resilience against deauthentication attacks and packet injection techniques.

Monitor Mode Management

Configure and manage wireless interfaces in monitor mode for passive network surveillance.

PMKID Attack

Capture PMKID from access points to crack WPA/WPA2 without requiring a full handshake capture.

Rogue Access Point Detection

Identify unauthorized and evil twin access points that impersonate legitimate networks to intercept credentials.

Client Deauthentication Testing

Test whether wireless clients properly handle deauthentication frames and reconnection without exposing sensitive data.

WPS PIN Vulnerability Assessment

Identify and test access points with WPS PIN enabled for brute-force and Pixie Dust attacks.

Wireless Forensic Analysis

Capture and analyze wireless traffic for evidence collection, intrusion investigation, and protocol analysis.

Key Features

Related Tools

Wifite

Wireless Attacks

Automated wireless auditing tool that wraps Aircrack-ng for streamlined WEP/WPA/WPS cracking with minimal user input.

Hashcat

Password Attacks

GPU-accelerated password recovery tool supporting 300+ hash algorithms including WPA PMK offline cracking.

Fern WiFi Cracker

Wireless Attacks

GUI-based wireless security tool providing visual network scanning and automated WEP/WPA/WPS cracking.

Kismet

Sniffing & Spoofing

Passive wireless network detector, sniffer, and intrusion detection system supporting WiFi, Bluetooth, and SDR.

Reaver

Wireless Attacks

WPS PIN brute-force attack tool that recovers WPA/WPA2 passphrases through WiFi Protected Setup vulnerabilities.

Cowpatty

Password Attacks

WPA/WPA2 offline dictionary attack tool with multi-processing support and PMK caching for repeated attacks.

Frequently Asked Questions

What is Aircrack-ng used for?

Aircrack-ng is a complete suite of tools for wireless network security assessment. It is used for monitoring WiFi networks, capturing packets, cracking WEP and WPA/WPA2 keys, and testing wireless network security through authorized penetration testing.

Does Aircrack-ng support WPA3?

Aircrack-ng has limited WPA3 support through its aircrack-ng and airodump-ng tools. WPA3 cracking is significantly more difficult due to SAE (Simultaneous Authentication of Equals) handshake protection, which prevents offline dictionary attacks.

What hardware do I need for Aircrack-ng?

You need a wireless card that supports monitor mode and packet injection. Popular options include chipsets from Atheros (AR9271), Ralink (RT3070), and Realtek (RTL8812AU). Internal laptop cards often lack injection support.

Is Aircrack-ng legal to use?

Aircrack-ng is legal security software. However, using it to crack WiFi networks without explicit permission is illegal in most jurisdictions. Always obtain written authorization before testing.

How long does it take to crack WPA2?

Cracking WPA2 depends on the password complexity and wordlist quality. Simple passwords (8 characters, dictionary words) may crack in seconds. Complex passwords (12+ characters with symbols) may take years with standard hardware. GPU-accelerated tools like hashcat are significantly faster.

What is the PMKID attack?

The PMKID attack captures a single PMKID value from the access point's first EAPOL frame without requiring a full 4-way handshake or connected clients. Use hcxdumptool to capture the PMKID, then convert it with hcxpcapngtool for offline cracking with hashcat or aircrack-ng.

Can Aircrack-ng crack WPS PINs?

Aircrack-ng itself does not directly crack WPS PINs. Use Reaver or Bully for WPS PIN brute-force attacks, and Wifite for automated WPS testing. Aircrack-ng focuses on WEP and WPA/WPA2 key recovery.

What is the difference between airodump-ng and aircrack-ng?

airodump-ng captures and displays wireless network information including BSSIDs, channels, encryption types, and connected clients. aircrack-ng performs the actual key cracking from captured packet files. Use airodump-ng to capture data, then aircrack-ng to recover the key.

How do I capture a WPA handshake?

1) Enable monitor mode with airmon-ng start wlan0. 2) Run airodump-ng to find the target network. 3) Target with airodump-ng -c CHANNEL --bssid BSSID -w capture wlan0mon. 4) Send deauth with aireplay-ng -0 5 -a BSSID wlan0mon. 5) Wait for the 'WPA handshake: XX:XX:XX:XX:XX:XX' confirmation in airodump-ng.

Why is my captured handshake not cracking?

Common reasons include: incomplete handshake (missing EAPOL packets), wrong channel during capture, corrupted capture file, weak wordlist not containing the password, or targeting the wrong BSSID. Verify with aircrack-ng -J capture and check that all 4 EAPOL messages are present.

Can Aircrack-ng work on 5GHz networks?

Yes, with a dual-band wireless adapter that supports 5GHz monitor mode. Use airodump-ng --band a to scan 5GHz networks specifically, or --band abg for all bands. The Alfa AWUS036ACH and AWUS036ACSM are popular dual-band adapters.

What wordlists work best with Aircrack-ng?

For general testing: rockyou.txt (default Kali), SecLists WiFi lists, and crunch-generated custom lists. For targeted testing: create wordlists based on the target's SSID, location, and common password patterns. Use hashcat rules to transform base words into password variations.

How do I verify my wireless adapter supports injection?

Run: aireplay-ng --test wlan0mon after enabling monitor mode. The test sends injection probe requests and checks for responses. You can also use: iwconfig to verify monitor mode support and airmon-ng to check interface capabilities before testing.

Can Aircrack-ng decrypt captured traffic?

Yes, use airdecap-ng to decrypt captured traffic once you have the key. For WEP: airdecap-ng -w HEX_KEY capture.cap. For WPA: airdecap-ng -p PASSWORD -e ESSID capture.cap. Decrypted traffic can then be analyzed in Wireshark.

What is besside-ng and when should I use it?

besside-ng is an automated tool that combines WEP cracking and WPA handshake capture into a single automated attack. Use it when you want to quickly assess both WEP and WPA networks without manually switching between individual Aircrack-ng tools.

How do I set up a WiFi lab for Aircrack-ng practice?

Use a virtual machine with a USB WiFi adapter that supports monitor mode (Alfa AWUS036ACH recommended). Set up a virtual access point using hostapd with WPA2 encryption. Create a known weak password for practice. This setup provides a safe, legal environment for learning without risking unauthorized access to real networks.

Can Aircrack-ng crack PMKID without a handshake?

Aircrack-ng can crack PMKID hashes if you convert the capture to the correct format. First capture PMKID with hcxdumptool, convert with hcxpcapngtool, then crack with aircrack-ng or hashcat. The PMKID method is faster as it only requires a single frame from the access point rather than a complete 4-way handshake.

What is the difference between aircrack-ng and hashcat for WPA?

aircrack-ng uses CPU for dictionary and brute-force attacks against WPA handshakes. Hashcat uses GPU acceleration and supports rule-based attacks, making it 10-50x faster for complex passwords. Use aircrack-ng for quick tests with small wordlists; use hashcat for comprehensive cracking with large wordlists and password rules.

How do I test my WiFi network security with Aircrack-ng?

1) Enable monitor mode: airmon-ng start wlan0. 2) Scan: airodump-ng wlan0mon. 3) Capture your own network's handshake: airodump-ng -c CHANNEL --bssid YOUR_AP -w test wlan0mon. 4) Deauth yourself: aireplay-ng -0 5 -a YOUR_AP wlan0mon. 5) Crack: aircrack-ng -w rockyou.txt test-01.cap. Only test networks you own or have authorization to assess.

Can Aircrack-ng detect evil twin access points?

aircrack-ng itself does not detect evil twin APs. Use Kismet (passive wireless monitoring) or bettercap for evil twin detection. However, airodump-ng can help identify suspicious APs by showing multiple APs with the same SSID on different BSSIDs, which may indicate an evil twin attack.

How do I use Aircrack-ng with hashcat for faster WPA cracking?

Convert your capture to hashcat format: hcxpcapngtool -o hash.hc22000 capture.pcapng. Then crack with hashcat -m 22000 hash.hc22000 wordlist.txt. Hashcat uses GPU acceleration and is 10-50x faster than aircrack-ng for complex passwords. Combine with rules (-r rockyou.txt) for maximum coverage.

Can Aircrack-ng crack WPA3-SAE?

WPA3-SAE uses Simultaneous Authentication of Equals which prevents offline dictionary attacks. Aircrack-ng cannot crack WPA3 handshakes through traditional methods. The only viable attack is against WPA3-transition mode (WPA2/WPA3 mixed) where WPA2 compatibility is enabled. Use wpa3-sae-crack for experimental SAE attack research.

How do I capture and analyze WiFi probe requests?

Use airodump-ng in monitor mode to capture all wireless management frames including probe requests: airodump-ng --output-format pcap -w probes wlan0mon. Probe requests reveal client devices, preferred networks, and device types. Analyze in Wireshark with display filter 'wlan.fc.type_subtype == 0x04' to identify targeted tracking opportunities.

What is the difference between airmon-ng and iw for monitor mode?

airmon-ng is an Aircrack-ng utility that handles conflicting processes and creates monitor interfaces: airmon-ng start wlan0. iw is the standard Linux wireless configuration tool: iw dev wlan0 set type monitor. airmon-ng is more convenient (kills NetworkManager automatically), while iw is more portable and works on any Linux system without Aircrack-ng installed.

How do I test WEP encryption strength with Aircrack-ng?

Capture WEP traffic with airodump-ng, then crack with aircrack-ng -b BSSID -w wordlist.txt capture.cap. WEP requires approximately 40,000-85,000 IVs for statistical cracking. Use aireplay-ng -3 (ARP replay) to accelerate IV generation. WEP is critically insecure and can be cracked in minutes with sufficient traffic. Use this to demonstrate why organizations must upgrade to WPA2/WPA3.

Tags

#wireless-attacks

Output Explanation

The interface displays hardware addresses (BSSID), power levels, active channels, encryption algorithms, and network names. A distinct alert confirms when a password hash has been successfully decoded.

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.