I require a Linux command to display a Hexdump of the PCAP File. Currently, I am using the xxd PcapFile.pcap command. With this, I am getting a hex dump of pcap file along with other bytes inserted in between and end which do not belong to the pcap file. These bytes are of carriage return, newline, a new page, null characters etc. I do not want the hex dump to display these characters. Is there a proper command which can only display the data bytes from the pcap file?
eg:
0000000: d4c3 b2a1 0200 0400 0000 0000 0000 0000 ................
0000010: 0000 0400 0100 0000 590d 9d60 abe9 0700 ........Y..`....
0000020: 3c00 0000 3c00 0000 0010 f393 8870 000c <...<........p..
0000030: 2998 7ecb aefe 1002 0014 0000 0080 9000 ).~.............
0000040: 0000 0101 0000 0000 0019 fffe 0000 0000 ................
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000060: 0000 0000 590d 9d60 abe9 0700 3c00 0000 ....Y..`....<...
The bytes I get in the end and between are:
END: 0000 f404 0000
BETWEEN Each Packet: 0000 f404 0000 0600 0000 f404 0000 0000 0000 0000 0000 dc56 2d01 d204 0000 d204