Page 1 of 1

WiFi Packet Capture Using Sniffer in ESP32

Posted: Thu Jul 22, 2021 2:07 pm
by rajvrk36@gmail.com
Hello,

Hardware specification: ESP32 Dev kit (Wroom).
And using ESP-MDF.

Details:

1. In promiscuous mode, the data sniffed will have a structure of header and payload.
2. If you extract this payload, you will get the WiFi data frame. This in turn have a header and payload.
3. If you extract this payload, you will get the ESP-Mesh packet. This is basically your WIFI IEEE80211 PACKET-NETWORK DATA This will
also have a header and payload which is created by ESP-MDF.
4. Our interest is this ESP-MESH header which will have the initial source MAC and final destination MAC address
So once you are able to read WIFI IEEE80211 PACKET-NETWORK DATA it will contain the ESP-MESH header.

Question:

1. Is the above understanding is correct?
2. How to decode/extract payload(PACKET-NETWORK DATA) to readable format?

Thanks for the answers :)

Best,
Rajkumar

Re: WiFi Packet Capture Using Sniffer in ESP32

Posted: Fri Jul 23, 2021 11:01 am
by aniket21314151
here is a project that could help you to get what you are looking for. hope that helps!

https://github.com/ESP-EOS/ESP32-WiFi-Sniffer

Re: WiFi Packet Capture Using Sniffer in ESP32

Posted: Wed Jul 28, 2021 2:04 pm
by rajvrk36@gmail.com
Hi @aniket21314151

Thank you so much for your time. We are using ESP-IDF/MDF based on C/C++ program. So we could not able to use arduino.