Linux Command for getting a dump of hex values bytes from Pcap File

0 votes

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

Apr 13 in Linux Administration by Rahul
• 8,980 points
17 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Linux Administration

0 votes
0 answers

Linux Command for getting a dump of hex values bytes from Pcap File

I require a linux command to display ...READ MORE

Apr 20 in Linux Administration by Edureka
• 9,320 points
7 views
0 votes
0 answers

How can I convert a series of images to a PDF from the command line on linux?

I have a scanning server I wrote ...READ MORE

Apr 21 in Linux Administration by Edureka
• 9,320 points
10 views
0 votes
1 answer

Which is a good hex editor for Linux?

You could try Bless. It is written ...READ MORE

answered Jun 5, 2019 in Linux Administration by Upasana
• 8,620 points
239 views
0 votes
1 answer

To attach a file using mail command on Linux

$ echo | mutt -a syslogs.tar.gz admin@domain.org READ MORE

answered Jun 28, 2019 in Linux Administration by Upasana
• 8,620 points
1,492 views
0 votes
1 answer

Can I analyze a program's core dump file with GDB when it has command-line parameters?

You can simply use of GDB, to debug ...READ MORE

answered Jul 1, 2019 in Linux Administration by Shubham
• 13,490 points
6,723 views
0 votes
1 answer

How to check permissions of a file in the Linux system?

Hi@akhtar, If you prefer using the command line, ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,340 points
634 views
0 votes
0 answers

How to create a file in Linux from terminal window?

What's the easiest way to create a ...READ MORE

Apr 13 in Linux Administration by Rahul
• 8,980 points
19 views
0 votes
0 answers

Getting file in hex format - my output vs xxd command output

I'm trying to write a simple program ...READ MORE

Apr 20 in Linux Administration by Edureka
• 9,320 points
36 views
0 votes
0 answers

Getting file in hex format - my output vs xxd command output

I'm trying to write a simple program ...READ MORE

Apr 20 in Linux Administration by Edureka
• 9,320 points
11 views
0 votes
0 answers

Opening a binary file in VI and XXD

I am attempting to modify the binary ...READ MORE

Apr 13 in Linux Administration by Rahul
• 8,980 points
19 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP