RadioTap headers in scapy

牧云@^-^@ 提交于 2019-12-23 03:46:11

问题


I'm trying to send and receive packets with scapy and read the RadioTap Header. The wireless adapter (and driver) is able to handle those headers, but I can't seem to get them.

Whenever I send a normal packet in scapy, is does not contain such a header (thus, sniffing packets and checking one with pkt.haslayer(RadioTap) returns "0", and I am not able to display the header like with pkt[RadioTap].show() ). If I explicitely construct my packets with a RadioTap header (like in a pkt = RadioTap() and view it, I can get a RadioTap header, but it is empty. After sending it and receiving it, I can get still nothing.

I read posts like this one: Scapy - retrieving RSSI from WiFi packets. But I don't have the problem that the RadioTap header doesn't get decoded, it's simply not filled with anything.

I'm using scapy 2.3.1, if this makes any difference. Any ideas?

来源:https://stackoverflow.com/questions/35851539/radiotap-headers-in-scapy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!