Search code examples
wifiscapy

Why Scapy added 'c2' byte in Dot11 element infomation?


I just followed the steps from Forging WiFi Beacon, but my output is strange, it added 'c2' byte between '0f' and 'ac' byte, Why this happened? How do I solve this problem?

Please look at the image enter image description here


Solution

  • It seems that you're on Python 3 (as IPython > 5 requires Python > 3)

    In that case, you should remember to append a b in front of bytes strings: b"\x01\x02..." as it is required on Python 3+