在Ubuntu 17.10中无法启用Monitor Mode,无法使用Aircrack-ng求助
Hey there, let's get your monitor mode up and running so you can use Aircrack-ng on Ubuntu 17.10. I've walked through this exact issue with plenty of users before, so let's break it down step by step.
第一步:确认你的无线网卡支持监听模式
First off, not all wireless adapters support monitor mode—let's verify yours first. Run this command in the terminal:
iw list
Scroll through the output until you find the supported interface modes section. If monitor is listed there, your hardware is compatible. If not, you’ll likely need to use a dedicated penetration-testing USB wireless adapter (many budget options work perfectly for this).
第二步:准备环境(释放无线接口)
NetworkManager and background wireless services can lock your adapter, stopping you from switching modes. Let’s shut them down:
- Stop NetworkManager:
sudo systemctl stop NetworkManager
If that throws an error (older service naming), try:
sudo service network-manager stop
- Kill any lingering
wpa_supplicantprocesses that might be holding onto the adapter:
sudo killall wpa_supplicant
第三步:切换到监听模式
First, find your wireless interface name (it might be wlan0, wlp2s0, or similar). Run this to check:
iw dev
Note the name next to Interface (we’ll use wlan0 as an example below).
Now follow these commands:
- Bring the interface down:
sudo ip link set wlan0 down
- Switch to monitor mode:
sudo iw dev wlan0 set type monitor
- Bring the interface back up:
sudo ip link set wlan0 up
第四步:验证监听模式是否生效
Check if the mode change worked with:
iw dev wlan0 info
Look for the line that says type monitor—if that’s there, you’re ready to go! Test it with Aircrack-ng’s airodump tool:
airodump-ng wlan0
You should see nearby wireless access points pop up if everything’s working correctly.
常见问题排查
- Driver issues: If you’re using a Broadcom adapter, you might need to install the correct driver. Run:
sudo apt update && sudo apt install bcmwl-kernel-source
Note: If Secure Boot is enabled on your system, you’ll need to disable it first—otherwise the kernel module won’t load.
- Mode switch fails: Double-check no other processes are using the adapter. Run
sudo lsof | grep wlan0to see active programs attached to it, then kill those processes. - Reverting to normal mode: When you’re done testing, switch back to managed mode to use your wireless normally:
sudo ip link set wlan0 down sudo iw dev wlan0 set type managed sudo ip link set wlan0 up sudo systemctl start NetworkManager
内容的提问来源于stack exchange,提问作者Navod Rathnayake

