Skip to content

Commit 1465d0c

Browse files
author
Stefan Kremser
committed
Merge remote-tracking branch 'origin/master'
2 parents aaa754b + 6c991c8 commit 1465d0c

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# ArduinoPcap
22
Create and send .pcap files using ESP8266/ESP32 and Arduino.
33

4-
[**Support me and my projects on Patreon!**
5-
<img width="450" alt="Support me on Patreon" src="https://c5.patreon.com/external/logo/downloads_wordmark_navy.png">](https://www.patreon.com/spacehuhn)
4+
[![Sniffing WiFi with ESP32 & ESP8266 in Wireshark](https://img.youtube.com/vi/3Ac6X6ZBQ0g/0.jpg)](https://www.youtube.com/watch?v=3Ac6X6ZBQ0g)
65

6+
**Support me and my projects on [Patreon!](https://www.patreon.com/spacehuhn)**
7+
[<img width="200" alt="Support me on Patreon" src="https://c5.patreon.com/external/logo/downloads_wordmark_navy.png">](https://www.patreon.com/spacehuhn)
8+
9+
## Please Note
10+
11+
This is a proof of concept! The included examples are only for ESP8266 and ESP32, but the library can be used for other Arduinos as well. The packet output in the examples is unfiltered and maybe malformed, **errors can occur!**
12+
13+
Also a big thanks to [xdavidhu](http://github.com/xdavidhu) for writing the python script to connect to Wireshark!
714

815
## Installation
916

@@ -15,11 +22,11 @@ For more information please read [Installing Additional Arduino Libraries](https
1522
**If you don't use an ESP32, you will need the [SdFat](https://github.com/greiman/SdFat) library.**
1623

1724
Following Arduino libraries are required for the included examples:
18-
- [Arduino Time Library](https://github.com/PaulStoffregen/Time)
19-
- [ESP8266](https://github.com/esp8266/Arduino)
20-
- [ESP32](https://github.com/espressif/arduino-esp32)
25+
- [Arduino Time Library](https://github.com/PaulStoffregen/Time) (for all examples)
26+
- [ESP8266](https://github.com/esp8266/Arduino) (for the `esp8266_*` examples)
27+
- [ESP32](https://github.com/espressif/arduino-esp32) (for the `esp32_*` examples)
2128

22-
For the Serialshark script:
29+
For the Serialshark script (the script located in `extras`):
2330
- [python3](https://www.python.org/downloads/)
2431
- [pyserial](https://github.com/pyserial/pyserial)
2532
- [Wireshark](https://www.wireshark.org/#download)
@@ -43,7 +50,7 @@ You might want to adjust the settings in the sketch (settings may be different d
4350
```
4451

4552
Also note that when you use the ESP8266 most packets will be malformed or cut off at the end.
46-
I don't know why the promiscuous mode returns this mostly false data, but it's still good enough to get some MAC adresses and SSIDs. I used it successfully in various projects to [detect deauthentication packets](https://github.com/spacehuhn/DeauthDetector), [scan for client devices](https://github.com/spacehuhn/esp8266_deauther) and build a low cost WiFi [packet monitor](https://github.com/spacehuhn/PacketMonitor).
53+
I don't know why the promiscuous mode returns this mostly false data, but it's still good enough to get some MAC addresses and SSIDs. I used it successfully in various projects to [detect deauthentication packets](https://github.com/spacehuhn/DeauthDetector), [scan for client devices](https://github.com/spacehuhn/esp8266_deauther) and build a low cost WiFi [packet monitor](https://github.com/spacehuhn/PacketMonitor).
4754
But if you want something more reliable then have a look at the ESP32, its promiscuous mode is working way better.
4855

4956
### Live capture using Wireshark
@@ -53,11 +60,11 @@ For that be sure to have everything installed - see [Dependencies](#dependencies
5360

5461
Flash your device and be sure it is connected.
5562
Then start the `SerialShark.py` (it's in the `extras` folder) with `python3 SerialShark.py`.
56-
It will ask you about about the serial port (you have to find that out), the baudrate (be sure it's the same as in your sketch) and where to save the pcap file (wherever you want).
63+
It will ask you about about the serial port (you have to find that out), the baud rate (be sure it's the same as in your sketch) and where to save the pcap file (wherever you want).
5764

5865
### Saving onto a SD-Card
5966

60-
For that you will need a SD-Card (obviously). You can connect it direcly to the ESP8266/ESP32, but I recomment buying a SD-Card module/shield. Wire up the SPI connection (MOSI,MISO,SCL,CS,GND,VCC) to your module and basically you are ready to go!
67+
For that you will need a SD-Card (obviously). You can connect it directly to the ESP8266/ESP32, but I recommend buying a SD-Card module/shield. Wire up the SPI connection (MOSI,MISO,SCL,CS,GND,VCC) to your module and basically you are ready to go!
6168
[If you don't know which pins to connect to which, just search for a pinout picture of your module]
6269

6370
The included examples will save a new .pcap file every 30s. If you open the serial monitor in Arduino (baudrate is 115200), you will get some more information.

0 commit comments

Comments
 (0)