查看无线网卡是否支持监听模式
一、查看方式一
https://www.bilibili.com/read/cv5550987/?from=search&spm_id_from=333.337.0.0
命令:
iw list
结果:
Wiphy phy0
max # scan SSIDs: 4
max scan IEs length: 2257 bytes
max # sched scan SSIDs: 0
max # match sets: 0
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Retry short long limit: 2
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* CCMP-256 (00-0f-ac:10)
* GCMP-128 (00-0f-ac:8)
* GCMP-256 (00-0f-ac:9)
Available Antennas: TX 0 RX 0
Supported interface modes: #支持的接口模式
* IBSS
* managed
* AP
* AP/VLAN
* monitor #监听模式
* mesh point
...//省略部分内容//...
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports low priority scan.
Device supports scan flush.
Device supports AP scan.
Device supports per-vif TX power setting
Driver supports full state transitions for AP/GO clients
Driver supports a userspace MPM
Device supports configuring vdev MAC-addr on create.
Supported extended features:
* [ RRM ]: RRM
* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
分析:
在输出的信息中包括一部分Supported interface modes,可以查看无线网卡支持的工作模式。
如果列出的模式有monitor,则表示支持监听。否则,不支持。
二、查看方式二
https://blog.csdn.net/m0_46495271/article/details/117792296
安装工具包:
apt install wireless-tools
命令:
iwconfig wlan0 mode monitor
结果:
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Inappropriate ioctl for device.
分析:
出现上面的错误,说明网卡不支持监听模式。
免责声明:本号所涉及内容仅供安全研究与教学使用,如出现其他风险,后果自负。
参考、来源: