我在 Windows 主机上运行 Ubuntu 16.04 作为客户虚拟机。我插入了 USB wifi 连接器,它在我的虚拟机中可见且正常工作
现在,我尝试运行命令“sudo airmon-ng start wifi0”,其中 wifi0 是我的接口的名称
每次我这样做时都会出现错误
> sudo airmon-ng start wifi0
>
> Found 5 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 run 'airmon-ng check kill'
>
> PID Name 962 NetworkManager 973 avahi-daemon 1002
> avahi-daemon 1517 wpa_supplicant 2389 dhclient
>
> PHY Interface Driver Chipset
>
> phy1 wifi0 rtl8192cu Realtek Semiconductor Corp. RTL8192CU 802.11n
> WLAN Adapter cat: /sys/class/ieee80211/phy1/device/net/wifi0mon/type:
> No such file or directory
>
> Newly created monitor mode interface wifi0mon is *NOT* in monitor
> mode. Removing non-monitor wifi0mon interface...
它创建了一个名为“rename4”的接口,但在 wireshark 中不起作用
iwconfig
rename4 IEEE 802.11bgn Mode:Monitor Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Power Management:on
wifi0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Power Management:off
lo no wireless extensions.
知道如何在监控模式下创建接口吗?我对这些都很陌生,所以这很令人困惑。
提前致谢
答案1
首先,重新启动系统以清除所有内容。
接下来,打开终端(++ ctrl)并运行以下命令:altf1
airmon-ng check kill
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
请注意,虽然这才不是创建一个新的接口,它仍然实现了预期效果,通过将现存的 wlan0
接口进入监控模式。