Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Exporting PCAP to Database

Hi guys!

I'm working on a little program to convert .PCAP files into MySQL tables, in order to make analysis easier (a program that I will share here as soon as is finished, naturally).

My first command is running on a Windows console and outputs a very nice filtered .pcap file, filled with information.

tshark -r "C:\proyecto \20210729_15_45-MIRR-BKP.pcap" -Y camel -w "C:\proyecto\20210729_15_45-MIRR-BKP_filtered.pcap"

However, on my next step, converting the aforementioned .PCAP to JSON, I'm getting a blank JSON file.

tshark -r "C:\proyecto\20210729_15_45-MIRR-BKP_filtered.pcap" -T json -w "C:\proyecto\20210729_15_45-MIRR-BKP.json"

I used the code provided by @Chuckc on this post.

Once I get the .JSON part working, I'll implement a little UI to select what packet information will be exported, etc.

Thank you and best regards