为什么 libpcap 无法捕获出站 802.11 信标?
我正在编写自己的程序,该程序将在 802.11 AP 上运行,以捕获 AP 上的所有传出信标。但我刚刚注意到我无法使用当前的 libpcap 来做到这一点:程序无法捕获任何出站信标。我也尝试过 Wireshark,它给出了相同的结果。
我的问题是:
任何人都可以阐明我所看到的原因吗?
是否有任何用户空间方法可以捕获该特定 AP 上 802.11 AP 的出站信标(而不是在其他 PC 上捕获)?如果我可以在不侵入无线驱动程序的情况下执行此操作,对我来说会更好。
我使用 Ubuntu 10.04 作为操作系统,Madwifi 作为无线驱动程序。
谢谢各位。
I am writing my own program, which will be running on a 802.11 AP, to capture all the outgoing beacons on the AP. But I just noticed I cannot do it with the current libpcap: the program couldn't capture any outbound beacons. I've also tried Wireshark which gave the same result.
My questions are:
Can anyone shed some lights on the causes of what I saw?
Is there any user space method that I can capture the outbound beacons of a 802.11 AP on that specific AP (rather than capturing on other PCs)? It is better for me if I can do this without hacking into the wireless driver.
I am using Ubuntu 10.04 as the OS, Madwifi as the wireless driver.
Thanks, folks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜测 WiFi 芯片正在自动生成信标
所以它们永远不会通过 libpcap 拦截的驱动芯片接口
数据包。您可能需要第二个无线电才能捕获
来自空中的信标(当主无线电忙于发送信标时
接收器已关闭,因此无法听到正在传输的内容)。
I would guess that the WiFi chip is generating the beacons autonomously
so they never pass the driver-chip interface where libpcap intercepts
packets. You'll probably need a second radio to be able to capture the
beacons from the air (when the primary radio is busy sending a beacon
the receiver is turned off so it can't hear what it is transmitting).
您可以在wireshark中捕获这些数据包(信标、确认等)
您需要做的如下:
You can Capture those packets(Beacon ,Acknowledgement,etc) in wireshark
all you need to do is following :