I have a raw tcpdump text file like
Where Wireshark responds to opening the file "The file "xxxxx" isn't a capture file in a format wireshark understands. Do you have a converter? or something that will assist me? asked 01 Mar '13, 11:06 BeastyISNT edited 20 Jun '14, 17:23 Guy Harris ♦♦ |
4 Answers:
Sure, as your tcpdump output is just text based. Wireshark needs a binary format called pcap or pcap-ng.
No, but you can write the tcpdump output in pcap format.
Then open that file with Wireshark. Regards answered 01 Mar '13, 11:26 Kurt Knochner ♦ Would love to re-run the tcpdump; however the data is provided by a hosted tier. I do not have access to run the process. Will check into http://code.google.com/p/pcapr/wiki/Xtractr as stated in the first comment. (01 Mar '13, 11:34) BeastyISNT xtractr won't help, as it needs a pcap file, which you don't get from the hosted tier. (01 Mar '13, 12:12) Kurt Knochner ♦
BTW: assist in what? Troubleshooting or converting? (01 Mar '13, 12:30) Kurt Knochner ♦ |
Please have a look at the answers to this similar question... answered 01 Mar '13, 11:25 SYN-bit ♦♦ |
As the output of tcpdump was its text-mode output, the only information available in the file is the information tcpdump printed; even if it were possible to convert that file to a pcap file, the pcap file would not contain any more information than is available in the printout - the TCP payload of the two packets you showed, for example, is permanently lost and you will not ever be able to get it back. If you need that information in order to solve a problem, you're out of luck. At best, you can try to get another trace, if whatever problem you're trying to diagnose can be made to happen again, and this time have them use tcpdump with the Apple have a pretty good technical note on how to take network traces; it discusses this from the point of view of an OS X user, and mentions some OS X-only tools, but it also mentions tcpdump in the "Getting Started With tcpdump" section, and that section applies to other UN*Xes, once you replace "If you're running on a system prior to OS X 10.6" with "If you're using tcpdump 0.x or 1.0.x" and "on OS X 10.6 and later" with "with tcpdump 1.1.0 and later", and replace the stuff talking about the answered 01 Mar '13, 15:36 Guy Harris ♦♦ Thanks Everyone who responded it was very helpful! Not sure how I mark this as answered. (23 Jun '14, 05:58) bz6djs you can't in this question, as it's not your own question. If you think your own question has been answered, click on the check mark. (23 Jun '14, 06:16) Kurt Knochner ♦ |
Use -vvv to create a pcap file which Wireshark can open. tcpdump -i eth0 -s 0 -vvv -w ./dump.pcap answered 24 Jun '14, 17:32 TiME2014
I.e.
is sufficient. (24 Jun '14, 18:13) Guy Harris ♦♦ |
I also tried
editcap -F libpcap ws_gsk_web001_v3 output.pcap editcap: Can't open ws_gsk_web001_v3: The file isn't a capture file in a known format
I also tried -T unknown, -T unknown-nettl, -T ether, -T eht0
Your thoughts. and Thank you for your time and effort.