Monitor mode is a special operating state for wireless network adapters that allows the card to capture every 802.11 frame in range — not just frames addressed to it — without associating with any access point. It is a prerequisite for tools likeDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/V0rt3xS0urc3/RedTeam-Portfolio/llms.txt
Use this file to discover all available pages before exploring further.
hcxdumptool and airodump-ng that need to passively observe or actively inject WiFi traffic. setup-wifi.sh automates the full activation sequence: detecting your adapter, stopping any processes that would interfere (such as NetworkManager and wpa_supplicant), enabling monitor mode with airmon-ng, and reporting the new interface name so you can use it immediately.
Prerequisites
WPA2 Launch Mode Required
The container must be started with
./run-kali.sh wpa2. The --privileged flag that mode adds is what allows the container to reach into the host kernel’s wireless driver stack. Without it, airmon-ng will fail silently.Compatible USB WiFi Adapter
You need a USB WiFi adapter that explicitly supports monitor mode and packet injection. Plug it into the host before starting the container.
Recommended adapters
| Adapter | Chipset | Notes |
|---|---|---|
| Alfa AWUS036NHA | Atheros AR9271 | Excellent Linux support, highly recommended |
| TP-Link TL-WN722N v1 | Atheros AR9271 | Only v1 supports injection; v2/v3 do not |
| Panda PAU09 | Ralink RT5572 | Dual-band, good driver support |
The vast majority of internal laptop WiFi cards do not support monitor mode. Even cards that appear in
iw dev may lack the necessary driver capabilities. Always verify with iw list before troubleshooting further.Usage
./run-kali.sh wpa2.
What the Script Does
Detect wireless interfaces
The script runs If no interfaces are found, it exits with an error and reminds you to verify the USB connection and that you used
iw dev and extracts all interface names:./run-kali.sh wpa2.Select the target interface
- One interface found: it is selected automatically — no prompt.
- Multiple interfaces found: you are prompted to type the name of the interface to configure (e.g.,
wlan0).
Kill conflicting processes
NetworkManager, wpa_supplicant, and other network daemons hold the wireless card open and prevent monitor mode from activating. The script stops them all:
Activate monitor mode
airmon-ng puts the selected interface into monitor mode and creates a new virtual interface (typically wlan0mon):Verifying Monitor Mode
Aftersetup-wifi.sh completes, confirm the interface is in the correct state:
After Setup: Using the Monitor Interface
Once monitor mode is active, pass the interface name (e.g.,wlan0mon) to your capture tool:
Troubleshooting
No WiFi interfaces found
Cause: The USB adapter was not connected before the container started, or the container was not launched with
--privileged (i.e., you used ./run-kali.sh normal).Fix: Plug in the adapter, then relaunch with ./run-kali.sh wpa2.Monitor mode interface not created
Cause: The adapter’s driver does not support monitor mode, or the driver was not loaded.Fix: Run
iw list | grep -A 5 "Supported interface modes" inside the container. If monitor is missing from the list, the adapter is not compatible — you need a different card.airmon-ng fails silently
Cause: Container was not started in privileged mode.Fix: Exit the container and relaunch with
./run-kali.sh wpa2.