Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/z4ziggy/esp8266_pcap_serial
ESP8266 Sniffer sketch which outputs PCAP data via Serial.
https://github.com/z4ziggy/esp8266_pcap_serial
Last synced: 26 days ago
JSON representation
ESP8266 Sniffer sketch which outputs PCAP data via Serial.
- Host: GitHub
- URL: https://github.com/z4ziggy/esp8266_pcap_serial
- Owner: z4ziggy
- Created: 2019-04-27T13:47:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T14:17:55.000Z (over 5 years ago)
- Last Synced: 2024-08-03T17:11:28.784Z (4 months ago)
- Language: C++
- Size: 25.6 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-network-stuff - **1**星
README
![](wireshark.gif)
# ESP8266 PCAP Sniffer
ESP8266 Sniffer sketch which outputs PCAP data via Serial. Max packet size is
128 bytes. Use the sniffer to stream 802.11 packets from ESP8266 to Wireshark
or dump into a PCAP file.## Overview
A fork of [esp8266_pcap_serial](https://github.com/spacehuhn/ArduinoPcap/blob/master/examples/esp8266_pcap_serial/esp8266_pcap_serial.ino) which strips out wifi_pkt_rx_ctrl_t struct before
streaming to wireshark. It still streams up to 128 bytes only, since this is a
SDK limitation. For unlimited buffer size, refer to my ESP_RTOS sniffer.To use this sniffer, flash the ESP8266 with this sketch, run the SerialShark.py
script, and reset the ESP8266 to start sniffing.
**Note:** Only 802.11 packets are sniffed atm. Change to your liking.## Compile & Flash
Load the sketch to your Arduino IDE and flash your ESP8266-based device. You
must install ArduinoPcap library first.Run `SerialShark.py` to forward the PCAP stream from the ESP8266 to Wireshark:
```sh
~/Arduino/libraries/ArduinoPcap/extras/SerialShark.py
```