Hi, I would like to know if it is possible to convert multiple wireshark capture files to csv files. For example there are 3 files in a folder, is there any way to convert all three with a command or does anyone know a way to do this? Any help is appreciated. I am using a tshark command to convert one file at a time,instead of test.pcap and test.csv i tried using variables as well with wildcard characters. tshark -T fields -n -r "C:\test.pcap" -E separator=, -e frame.time -e ip.src -e ip.dst -e ip.proto -e tcp.port -e tcp.analysis.ack_rtt >> "C:\test.csv" I've also tried using a for command but im running into errors with syntax. This is the full script im working with.
Thank you in advance. asked 17 Jul ‘12, 06:53 nyc edited 17 Jul ‘12, 12:04 Kurt Knochner ♦ |
One Answer:
Please try this:
Sample output:
Regards answered 17 Jul ‘12, 11:53 Kurt Knochner ♦ edited 17 Jul ‘12, 11:57 showing 5 of 7 show 2 more comments |
Hi Kurt,
This worked perfectly for what I was trying to do, Thank you. Im going to tweak it to see if I am able to get seperate output files for each capture file.
Thanks again for your help.
good luck!
Will above command able to include Payload information in the txt file?
If you adjust the tshark options and depending on the type of payload you are interested: Yes.
Kurt, can you give me example of tshark option to include payload?
• What payload are you interested in? << TCP. • Can you describe in which format you need the payload. << RAW. • Can you describe how you want to process the payload data or what you are looking for? << Still exploring and play around data.