I'm looking to convert pcap file to a raw dump of the bytes of the packets. This is when export file to txt file using wireshark then the requirement data is only hex data in red box. Because packet data is too much, so need some script to implement this. and this the result and create multiple file depend on number of packet data asked 26 Jan '11, 13:13 faz |
2 Answers:
I'm not entirely sure I understand what you're asking. If you want just the ASCII hex dump of all data and nothing else, then you can simply pipe the output of tshark through sed like so:
If that's not what you're asking, perhaps you could clarify. I don't understand "create multiple file depend on number of packet data." Do you mean that you want to create one file per packet? Is the file to be a hex dump (printable form) or is it a pure binary file? answered 26 Jan '11, 14:08 beroset edited 08 Oct '13, 13:21 |
The
faz, since your system doesn't have You can find more information on answered 24 Feb '11, 12:47 cmaynard ♦♦ |
when i'm try using tshark thought sed..give some error:
'sed' is not recognized as an internal or external command, operable program or batch file.
yes,I just want hex data only and want to create one file per packet. In this picture (printable form) is not same file with above. That's is just some example only. But actually hex data will be same.
You're probably running Windows; I'm not sure what commands that come with Windows would help here, but you might look at sed for Windows.