WiFi Packet Capture Using Sniffer in ESP32
Posted: Thu Jul 22, 2021 2:08 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
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