python - Craft raw wifi packet -


i'd craft single wifi packets, getting raw binary data before converted waveform , transmitted. understand it, should @ data link layer, , include headers (sync bits, crc, etc) , data itself. there way (preferably python)? i've looked scapy, wireshark, etc can't tell if or how can me need.

you can dump packet via monitor mode.
example, code sniffing data packets mon0 interface:

from scapy.all import *  def handler(pkt):     if pkt.haslayer(dot11):     if pkt.type == 2:             pkt.show()  sniff(iface="mon0", prn=handler) 

Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -