设置树莓派的无线网卡为监听模式(monitor)
发布日期:2022-03-18 18:19:19
浏览次数:3
分类:技术文章
本文共 2168 字,大约阅读时间需要 7 分钟。
先使用命令查看无线网卡的名字:
ifconfig
结果如下:
eth0: flags=4163mtu 1500 inet 192.168.123.165 netmask 255.255.255.0 broadcast 192.168.123.255 inet6 fe80::8ced:f8c8:81e:4e78 prefixlen 64 scopeid 0x20 ether b8:27:eb:5f:7f:23 txqueuelen 1000 (Ethernet) RX packets 241360939 bytes 36052043728 (33.5 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 533542201 bytes 738621286186 (687.8 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 269480 bytes 11338213 (10.8 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 269480 bytes 11338213 (10.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlan0: flags=4099 mtu 1500 ether b8:27:eb:0a:2a:76 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
其中的wlan0就是树莓派自带的无线网卡。
打开无线网卡的监听模式:ifconfig wlan0 mode monitor
会报错:
mode: Unknown hostifconfig: `--help' gives usage information.
使用如下命令查看无线网卡是否支持监听模式(monitor):
iw list
输出结果如下:
Supported interface modes: * IBSS * managed * AP * P2P-client * P2P-GO * P2P-device
我发现树莓派自带的无线网卡不支持监听模式(monitor)
然后我使用支持监听模式(monitor)的无线网卡,这类网卡有很多,我用的是8187L无线网卡。 然后使用命令iw list
可以看出支持监听模式(monitor):
Supported interface modes: * IBSS * managed * AP * AP/VLAN * monitor * mesh point
开启监听模式(monitor):
ifconfig wlan1 downiwconfig wlan1 mode monitorifconfig wlan1 up
查看是否成功开启监听模式(monitor):
iwconfig
结果如下,开启成功:
wlan1 IEEE 802.11 Mode:Monitor Frequency:2.412 GHz Tx-Power=30 dBm Retry short long limit:2 RTS thr:off Fragment thr:off Power Management:off
转载地址:https://zhang0peter.blog.csdn.net/article/details/84582971 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
网站不错 人气很旺了 加油
[***.192.178.218]2024年03月28日 22时52分55秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
C#中的的输入与输出
2019-04-27
C#中@符号的作用
2019-04-27
C#中$符号的作用
2019-04-27
Mac装windows系统后如何更换触控板设置
2019-04-27
Windows系统下如何设置软件的快捷键
2019-04-27
语言中的溢出
2019-04-27
Unity中实现获取一段时间内移动设备声音的最大音量
2019-04-27
springboot的初始化启动过程
2019-04-27
关于spring bean 生命周期代码详解-产生到消亡
2019-04-27
spring 启动之全过程 源码解析
2019-04-27
Spring AOP 原理
2019-04-27
mysql 分库分表分区 动态扩容 总结
2019-04-27
分布式事务 四种方案
2019-04-27
redis和spring整合
2019-04-27
iis6 和iis7s上整个网站重定向
2019-04-27
iis7 url重写和重定向
2019-04-27
navicat工具来将SQL Server数据迁移到MySQL
2019-04-27
XStream xml与javabean之间的互转
2019-04-27
Android应用构建:10:使用sdkmanager管理sdk
2021-06-30