You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,16 @@
1
1
# ArduinoPcap
2
2
Create and send .pcap files using ESP8266/ESP32 and Arduino.
3
3
4
-
[**Support me and my projects on Patreon!**
5
-
<imgwidth="450"alt="Support me on Patreon"src="https://c5.patreon.com/external/logo/downloads_wordmark_navy.png">](https://www.patreon.com/spacehuhn)
4
+
[](https://www.youtube.com/watch?v=3Ac6X6ZBQ0g)
6
5
6
+
**Support me and my projects on [Patreon!](https://www.patreon.com/spacehuhn)**
7
+
[<imgwidth="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!
7
14
8
15
## Installation
9
16
@@ -15,11 +22,11 @@ For more information please read [Installing Additional Arduino Libraries](https
15
22
**If you don't use an ESP32, you will need the [SdFat](https://github.com/greiman/SdFat) library.**
16
23
17
24
Following Arduino libraries are required for the included examples:
18
-
-[Arduino Time Library](https://github.com/PaulStoffregen/Time)
-[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)
21
28
22
-
For the Serialshark script:
29
+
For the Serialshark script (the script located in `extras`):
23
30
-[python3](https://www.python.org/downloads/)
24
31
-[pyserial](https://github.com/pyserial/pyserial)
25
32
-[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
43
50
```
44
51
45
52
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).
47
54
But if you want something more reliable then have a look at the ESP32, its promiscuous mode is working way better.
48
55
49
56
### Live capture using Wireshark
@@ -53,11 +60,11 @@ For that be sure to have everything installed - see [Dependencies](#dependencies
53
60
54
61
Flash your device and be sure it is connected.
55
62
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).
57
64
58
65
### Saving onto a SD-Card
59
66
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!
61
68
[If you don't know which pins to connect to which, just search for a pinout picture of your module]
62
69
63
70
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