Scapy, Dot11 Frames - Help

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
flyboyCW12
Posts: 3
Joined: Sat Jun 25, 2022 11:34 am

Scapy, Dot11 Frames - Help

Post by flyboyCW12 » Sun Jul 10, 2022 9:32 am

Hi,

I'm trying to build a radio beacon which will emit Dot11 compatible data frames on a Wifi network and am currently focusing on using an ESP32 board running MicroPython. There is a proposed solution on the net which seems to leverage Scapy modules to forge the frames but I don't believe Scapy is available as a MicroPython add on. Does anyone have any insight as to whether this might be a show stopper. I do want to stick to an ESP32/MicroPython approach so need some help finding possible work arounds.

i appreciate this is a complex issue so any pointers would be helpful. ;)

Cheers,

Harry

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Scapy, Dot11 Frames - Help

Post by jimmo » Mon Jul 11, 2022 1:14 am

flyboyCW12 wrote:
Sun Jul 10, 2022 9:32 am
Dot11 compatible data frames
I've not heard this term before, but it sounds like you want to be able to send raw crafted 802.11 frames? This is definitely not currently possible from MicroPython.

As far as I understand, this _is_ possible on the ESP32 though using
https://docs.espressif.com/projects/esp ... ace_tPKvib

It would be possible to add a way to call this from Python.
flyboyCW12 wrote:
Sun Jul 10, 2022 9:32 am
to leverage Scapy modules
I think the trick here would be to use scapy to construct the packets on your PC and get the format/structure right, and then you can craft them "by hand" on the ESP32 once you know what they look like. (i.e. use scapy as a template, but then construct the bytearrays manually once you know how to format them).

Post Reply