mon0 接口问题

mon0 接口问题

请问我的mon0界面有问题,我尝试了不同的方法,但仍然无法修复。我想打开mon0。这是结果。

# airmon-ng start wlan0

Found 4 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!

PID Name
722 avahi-daemon
730 avahi-daemon
775 NetworkManager
834 wpa_supplicant


Interface   Chipset     Driver

wlan0       Broadcom    wl - [phy0]mon0: ERROR while getting interface flags: No such device
                        (monitor mode enabled on mon0)


# airodump-ng mon0
Interface mon0: 
ioctl(SIOCGIFINDEX) failed: No such device
root@mbfada-Lenovo-G400:/opt/aircrack-ng# airodump-ng wlan0
ioctl(SIOCSIWMODE) failed: Operation not supported

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,
ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead.  Make
sure RFMON is enabled: run 'airmon-ng start wlan0 <#>'
Sysfs injection support was not found either.


# airmon-ng start wlan0

Found 4 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!

PID Name
722 avahi-daemon
730 avahi-daemon
775 NetworkManager
834 wpa_supplicant


Interface   Chipset     Driver

wlan0       Broadcom    wl - [phy0]mon0: ERROR while getting interface flags: No such device
                        (monitor mode enabled on mon0)

答案1

Ubuntu 的网络管理器有冲突。您可以使用以下方法将其设置为手动

sudo stop network-manager
echo "manual" | sudo tee /etc/init/network-manager.override

之后你应该可以运行

sudo airodump-ng start wlan0

或者你也可以设置

unmanaged-devices=interface-name:wlan0;interface-name:mon0

或者获取硬件地址

unmanaged-devices=mac:11:22:33:44:55:66

您可以在 /etc/NetworkManager/NetworkManager.conf 中的 keyfile 部分中更改此设置。另请参阅

man NetworkManager.conf

答案2

只需终止进程即可。您不需要取消管理接口:

举个例子:

kill 722 730 775 834
airmon-ng start wlan0

这些数字(中的 pid kill)大多数时候都会有所不同。

相关内容