
我一直在使用 aircrack-ng 工具和 Kismet 來看看我的網路是如何出現的。
Kismet 建立一個用於掃描的監視器介面 wlan0mon。
使用airmon-ng,我可以建立和刪除監視器接口,但無法刪除由 kismet 建立的 wlan0mon。無論我強行終止 Kismet 進程還是乾淨退出,wlan0mon 都會保留。
airmon-ng stop wlan0mon
結果出現一則訊息,指出 wlan0mon 的監視模式已停用,但我找不到刪除它的方法。
誰能告訴我這是為什麼?我更感興趣的是了解為什麼我無法刪除此介面,儘管解決方案也很漂亮。
我看過另一個類似的問題,建議使用帶有詳細開關的 grimwepa,但據我所知,grimwepa 永遠不會調用使用 kismet。
答案1
如果您的無線卡運行netlink
相容的驅動程式(例如,基於標準mac80211
堆疊),可以使用以下命令刪除介面:
iw dev wlan0mon del
iw help
有關創建/刪除 VIF 的更多信息,請參閱輸出:
dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
Add a new virtual interface with the given configuration.
Valid interface types are: managed, ibss, monitor, mesh, wds.
The flags are only used for monitor interfaces, valid flags are:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
The mesh_id is used only for mesh mode.
dev <devname> del
Remove this virtual interface