•  


GitHub - spacehuhn/ArduinoPcap: A library for creating and sending .pcap files for Wireshark and other programms.
Skip to content

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

License

Notifications You must be signed in to change notification settings

spacehuhn/ArduinoPcap

Folders and files

Name Name
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArduinoPcap

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

Sniffing WiFi with ESP32 & ESP8266 in Wireshark

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본