Aircrack-ng explained: tools, adapter requirements and how to test Wi-Fi security

Aircrack-ng is a versatile and powerful tool for ethical hackers who want to test the security of wireless networks. By offering features such as packet sniffing, WPA and WEP cracking, and dictionary-based attacks, Aircrack-ng helps security professionals assess the strengths and weaknesses of wireless networks. With its open-source nature, ease of use, and compatibility with multiple platforms, it remains a key tool for cybersecurity assessments and wireless network security.

Dec 23, 2024 - 12:11
Updated: 1 month ago
109.2k
Aircrack-ng explained: tools, adapter requirements and how to test Wi-Fi security

Quick answer: Aircrack-ng is an open-source suite for assessing Wi-Fi security. Its tools capture wireless traffic, test whether a network's keys or passphrase can be recovered, and check driver support. Use it only on networks you own or have written permission to test. It needs an adapter that supports monitor mode.

Key takeaways

  • Aircrack-ng is a suite: airmon-ng, airodump-ng, aireplay-ng and aircrack-ng each do one job.
  • You need a Wi-Fi adapter and driver that support monitor mode and packet injection.
  • WEP is broken. A weak WPA2 passphrase can be guessed offline from a captured handshake.
  • Test only your own lab access point or one you have written permission to test.
  • Defend with WPA3, long random passphrases and WPS disabled.

What is Aircrack-ng?

Aircrack-ng is a free suite of command-line tools for assessing the security of Wi-Fi networks. It is open source and is included in Kali Linux. The project site and documentation are at aircrack-ng.org.

A security tester uses it to answer one question: how easily could someone break into this wireless network? The answer helps the owner fix it.

Legal note. Capturing traffic from or attacking a network you do not own, without written permission, is illegal in India under the Information Technology Act, 2000. Use a router you own, set up for the purpose, in your own lab.

Which tools are in the suite?

ToolWhat it does
airmon-ngPuts a wireless card into monitor mode
airodump-ngLists nearby networks and captures packets
aireplay-ngSends crafted frames, for example to test deauthentication
aircrack-ngTests captured data against WEP keys or a WPA/WPA2 wordlist
airdecap-ngDecrypts capture files when the key is known

What adapter do you need?

You need a Wi-Fi adapter whose chipset and driver support monitor mode and packet injection. Many built-in laptop cards do not allow this under a virtual machine. A USB adapter is the usual solution. Pass it through to your Kali VM.

Check what your adapter can do:

$ iw list | grep -A 8 "Supported interface modes"
$ sudo aireplay-ng --test wlan0

If "monitor" appears in the supported modes, the card can sniff. The injection test tells you whether it can send frames. Look at the Aircrack-ng documentation for compatible chipsets rather than trusting a shop listing.

How do you set up a safe lab?

  1. Use a spare router you own as the test access point. Set a WPA2-PSK passphrase on it.
  2. Keep it away from your normal home or office network.
  3. Use a Kali VM with a USB adapter attached.
  4. Connect one test device to the access point.

How do you test your own network?

Put the card into monitor mode and look at the networks around you:

$ sudo airmon-ng start wlan0
$ sudo airodump-ng wlan0mon

airodump-ng shows the SSID, BSSID, channel and encryption of every network it hears. Only your own lab access point is in scope. Lock the capture to its channel and write to a file. When your test device connects, a WPA handshake can be captured. You then run aircrack-ng with a wordlist against that file. If the wordlist finds your passphrase, the passphrase is weak. If it does not, that tells you only that your wordlist did not contain it. WPA2 security depends entirely on the strength of the passphrase.

What do the results teach?

  • WEP can be recovered from enough captured traffic, so it should never be used.
  • WPA2-PSK with a short or common passphrase can be guessed offline from a captured handshake.
  • WPA3 uses SAE, which resists this offline guessing. See our guide to Wi-Fi encryption standards.

How do you defend your Wi-Fi?

  • Use WPA3, or WPA2 with a long random passphrase of 14 or more characters.
  • Disable WPS, which has its own weaknesses.
  • Change default router admin passwords and keep firmware updated.
  • Use WPA2/WPA3-Enterprise with individual credentials in an organisation.
  • Monitor for rogue access points and unusual deauthentication floods.

Common problems

  • Adapter not detected in the VM: attach the USB device to the guest, not the host.
  • Monitor mode fails: stop NetworkManager and wpa_supplicant first, as airmon-ng check kill suggests.
  • No injection: the driver or chipset does not support it. Use a supported adapter.

Where does this fit in your career?

Wireless testing is a standard part of a penetration test. OffSec offers a dedicated wireless course, covered in our OSWP course. More tools are in top Linux security tools for ethical hackers.

Next steps

If you want to practise wireless testing properly, see the OSWP PEN-210 course. For the wider tool set read the top eight Kali Linux tools.

Related reading

Frequently Asked Questions

Aircrack-ng is a suite of tools for assessing wireless network security. Testers use it to capture Wi-Fi traffic and check whether WEP keys or WPA/WPA2 passphrases are weak, so the owner can strengthen them.

The tool is legal, but using it against networks you do not own or have written permission to test is illegal. Practise on your own router or a lab network that is separate from your normal one.

You need an adapter and driver that support monitor mode and packet injection. Many laptop cards do not work well in a VM, so a compatible USB adapter attached to the Kali guest is common.

WPA3 uses SAE, which is designed to resist offline passphrase guessing from a captured handshake, so the classic Aircrack-ng method does not apply the same way. Weak configurations and downgrade settings still need checking.

Use WPA3 or WPA2 with a long random passphrase, disable WPS, update router firmware and change admin passwords. In organisations use WPA2 or WPA3 Enterprise with individual credentials.

The suite exists for several platforms, but monitor mode and injection depend heavily on drivers, and Windows support is limited. Most learners use Kali Linux in a VM with a supported USB adapter.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.