I am looking for someone who has experience in Tshark ( Wireshark command line ), MySQL and Python.
I am running a Tshark command that gathers 4 pieces of information. MAC Address, TimeStamp, RSSI Value and SSID.
The Tshark command is already being used and works as expected and is being run on a Raspberry PI 3 using a KALI ( Debian ) build. The Tshark command is as follows;
/usr/bin/tshark -l -I -i wlan1 -T fields -e [login to view URL] -e frame.time_epoch -e radiotap.dbm_antsignal -e [login to view URL] -E occurrence=f type mgt subtype probe-req
of which the results would be
Capturing on 'wlan1'
60:f1:89:16:0d:c2 1482945369.483895578 -33 O2 Wifi
60:f1:89:16:0d:c2 1482945369.485306917 -35 O2 Wifi.1x
60:f1:89:16:0d:c2 1482945369.486678152 -34 Wifi Extra
What i need to do is send the output of the Tshark command direct to a local MySQL database. I have read that this should be possible via a pipe and "awk" command ??
See this post - [login to view URL]
The RPI has MySQL server installed and running locally with a single DB and a Table which has 4 fields
MAC - Timestamp - RSSI - DroneID
I'm not actually interested in the SSID but collect it anyway. The DroneID is set via a config file ( php ) on the RPI and will need to be inserted onto the table as part of the import. This is critical as i run several RPI's, each with there own ID an id need to know which one the traffic is related to as eventually the plan is to synchronize all localhost DB's with primary server at AWS.... see below
This is an initial mini project part of a larger plan ( all based around this initial stage ) which i would be happy to discuss once i know you skill set and you have proven you know what your doing by
completing this.
Please only respond if you have experience and skills in using Tshark / Wireshark / Libpcap, MySQL and Python, although Python is part of the bigger project and not really necessary for this..
** If you know what your doing i wouldn't expect this to take much more than an hour to complete and i will require a successful test on my own dev RPI to complete this work.
If you need more info please ask.
Hi, yes via pipe and python (or any similar) is a simpliest solution. If you will respond quickly i will do it today ~1-1.5h. My timezone is gmt+3, i have 1.5h before sleep. Also I can do it tomorrow if possible.
Hi,
thank you for explaining the project in such detail.
From my experience it should not take more than 3 hours to make and test the script.
If you can share connection details to your RPI it would make things much faster.
Please ping me if that is possible, and i will try my best to make you happy with final product.
BR,
Jurica
I 've already worked on something similar and have the script that you need 80% done. i assume the number of rows for the tshark output is variable, correct?