WiFi Packet Capture Using Sniffer in ESP32

rajvrk36@gmail.com
Posts: 18
Joined: Fri May 28, 2021 10:58 am

WiFi Packet Capture Using Sniffer in ESP32

Postby rajvrk36@gmail.com » Thu Jul 22, 2021 2:07 pm

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

aniket21314151
Posts: 2
Joined: Thu Jul 22, 2021 11:36 am

Re: WiFi Packet Capture Using Sniffer in ESP32

Postby aniket21314151 » Fri Jul 23, 2021 11:01 am

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

rajvrk36@gmail.com
Posts: 18
Joined: Fri May 28, 2021 10:58 am

Re: WiFi Packet Capture Using Sniffer in ESP32

Postby rajvrk36@gmail.com » Wed Jul 28, 2021 2:04 pm

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.

Who is online

Users browsing this forum: No registered users and 24 guests