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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -