So here's the deal. My goal is to take a capture from TCPDUMP and import it into a MySQL database. I want to use wireshark to create a csv file using the "tshark -r Myfile -t fields" command. Once I have the csv file, i can use mysql to import the data into the database table. I would like this csv file to look exactly like the csv file created by using the export feature in the wireshark gui. So it should look like this: "No.","Time","Source","Destination","Protocol","Info" "1","0.000000","IntelCor_37:d2:aa","Broadcast","ARP","Who has 192.168.1.138? Tell 0.0.0.0" So far this is what I have: tshark -r /home/ftpuser/capture1.cap -T fields -e frame.number -e frame.time -E separator=, -E quote=d > /home/ftpuser/capture1csv.csv Thanks in advance! asked 19 Mar '11, 18:15 mowchow |
2 Answers:
Protocol Numbers Note answered 20 Mar '11, 08:34 joke |
Now you can get the Info field: you have to use the latest Development Release. Note answered 28 Feb '13, 21:34 joke |
Thanks joke.
That will work great. I was really hoping to get that info field some how but I guess ill have to do without.
Perhaps you can add other -e fields.
Hi Joke, i had a follow up question. Could you please tell me a way to put decrypted data into a csv file.