All Projects → spacehuhn → Arduinopcap

spacehuhn / Arduinopcap

Licence: mit
A library for creating and sending .pcap files for Wireshark and other programms.

Projects that are alternatives of or similar to Arduinopcap

Lib Python
Blynk IoT library for Python and Micropython
Stars: ✭ 140 (-49.64%)
Mutual labels:  esp32, library, esp8266
Esp Dash
A blazing fast library to create a functional dashboard for ESP8266 and ESP32
Stars: ✭ 548 (+97.12%)
Mutual labels:  esp32, library, esp8266
SnorkTracker
GPS IoT tracker board for scanning gps and environment information and sending this to a MQTT server via GPRS.
Stars: ✭ 38 (-86.33%)
Mutual labels:  esp8266, esp32
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (-62.59%)
Mutual labels:  esp8266, esp32
interp
Interpreter experiment. Testing dispatch methods: Switching, Direct/Indirect Threaded Code, Tail-Calls and Inlining
Stars: ✭ 32 (-88.49%)
Mutual labels:  esp8266, esp32
nodemcu-shell
UNIX-like ultra-lightweight Shell for NodeMCU supported devices (ESP8266, ESP32, Raspberry Pi, NanoPi, Orange Pi) written in Lua
Stars: ✭ 25 (-91.01%)
Mutual labels:  esp8266, esp32
WebServer tng
ESP8266/ESP32 WebServer
Stars: ✭ 65 (-76.62%)
Mutual labels:  esp8266, esp32
IoTManager
Это модульная система автоматизации на базе ESP32/ESP8266 микроконтроллеров и приложения IoT Manager.
Stars: ✭ 41 (-85.25%)
Mutual labels:  esp8266, esp32
coro2sens
Build a simple device that warns if CO₂ concentration in a room becomes a risk for COVID-19 aerosol infections.
Stars: ✭ 32 (-88.49%)
Mutual labels:  esp8266, esp32
RFLink
RFLink for ESP, with MQTT client
Stars: ✭ 52 (-81.29%)
Mutual labels:  esp8266, esp32
Farm-Data-Relay-System
A system that uses ESP-NOW, LoRa, and other protocols to transport sensor data in remote areas without relying on WiFi.
Stars: ✭ 97 (-65.11%)
Mutual labels:  esp8266, esp32
ESP-Mail-Client
⚡️Arduino Mail Client Library to send, read and get incoming mail notification for ESP32, ESP8266 and SAMD21 devices. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.
Stars: ✭ 78 (-71.94%)
Mutual labels:  esp8266, esp32
WiFiConnect
WiFi connection manager for ESP32 and ESP8266 with OLED support
Stars: ✭ 28 (-89.93%)
Mutual labels:  esp8266, esp32
OpenWeather
Arduino library to fetch weather forecasts from OpenWeatherMap
Stars: ✭ 88 (-68.35%)
Mutual labels:  esp8266, esp32
hassio
ESPHome Hass.io addon files
Stars: ✭ 175 (-37.05%)
Mutual labels:  esp8266, esp32
homekit-qrcode
Generate a pairing HomeKit QR code label for your HomeKit accessory from the command line
Stars: ✭ 17 (-93.88%)
Mutual labels:  esp8266, esp32
st7789 mpy
Fast pure-C driver for MicroPython that can handle display modules on ST7789 chip
Stars: ✭ 113 (-59.35%)
Mutual labels:  esp8266, esp32
esp-logger
An Arduino library providing a minimal interface to log data on flash memory and SD cards with ESP8266 and ESP32
Stars: ✭ 40 (-85.61%)
Mutual labels:  esp8266, esp32
Somfy Remote Lib
Emulate a Somfy remote using a 433.42 MHz transmitter.
Stars: ✭ 43 (-84.53%)
Mutual labels:  esp8266, esp32
webshark
🦈 Tool for visualizing packet captures.
Stars: ✭ 41 (-85.25%)
Mutual labels:  pcap, wireshark

ArduinoPcap

Create and send .pcap files using ESP8266/ESP32 and Arduino.

Sniffing WiFi with ESP32 & ESP8266 in Wireshark

Support me and my projects on Patreon!
Support me on Patreon

Please Note

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!

Also a big thanks to xdavidhu for writing the python script to connect to Wireshark!

Installation

Download this project and extract the .zip file to the Arduino libraries folder.
For more information please read Installing Additional Arduino Libraries.

Dependencies

If you don't use an ESP32, you will need the SdFat library.

Following Arduino libraries are required for the included examples:

For the Serialshark script (the script located in extras):

Please be aware that the Serialshark script doesn't work on Windows!

Usage

General

To open one of the examples open Arduino and go to File>Examples>Arduino Pcap.
You might want to adjust the settings in the sketch (settings may be different depending on the example):

//===== SETTINGS =====//
#define CHANNEL 1
#define FILENAME "esp8266"
#define SAVE_INTERVAL 30 //save new file every 30s
#define CHANNEL_HOPPING true //if true it will scan on all channels
#define MAX_CHANNEL 11 //(only necessary if channelHopping is true)
#define HOP_INTERVAL 214 //in ms (only necessary if channelHopping is true)

Also note that when you use the ESP8266 most packets will be malformed or cut off at the end.
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, scan for client devices and build a low cost WiFi packet monitor.
But if you want something more reliable then have a look at the ESP32, its promiscuous mode is working way better.

Live capture using Wireshark

You also live capture the packets in Wireshark over the serial connection!
For that be sure to have everything installed - see Dependencies.

Flash your device and be sure it is connected.
Then start the SerialShark.py (it's in the extras folder) with python3 SerialShark.py.
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).

The baudrate for the ESP32 example is 921600. The baudrate for the ESP8266 example is 115200.

Saving onto a SD-Card

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!
[If you don't know which pins to connect to which, just search for a pinout picture of your module]

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.

License

This project is licensed under the MIT License - see the license file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].