Convert from Pcap to Csv

Convert from Pcap to Csv

I need to convert a file from PCAP format to CSV format. Furthermore, I also need to select only some packets (e.g. only the tcp or only the modbus) to export in CSV. Any solutions? Thx!

2

1 Answer

Wireshark can output dissected packets as .csv file.

  1. Open .pcap file with Wireshark.
  2. Filter packets you want to export.
  3. Go to File->Packet Dissections->As CSV ...
  4. Select Displayed in Packet Range if you want to export only filtered packets.
  5. Save your file.

You can do it with tshark as well if you prefer console. See @RossJacobs comment

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.