我试着建立一个嗅探器来捕捉无线探测请求。
使用Wireshark,我只需设置一个类似于eth.type eq 0x0806 and eth.dst eq ff:ff:ff:ff:ff:ff的过滤器,它告诉我我正在监听所有的广播数据包。我还没找到监控信号强度的方法,但也许有一天我会找到的.
我也想对Pcap.Net做同样的事情。因此,一旦包被捕获,我就会看到
//Check if the packet is Ethernet
if (packet.DataLink.Kind == DataLinkKind.Ethernet)
{
//Check if the Ethernet packet