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, 2022 in Linux Administration by Rahul
• 9,670 points
642 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, 2022 in Linux Administration by Edureka
• 13,670 points
417 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, 2022 in Linux Administration by Edureka
• 13,670 points
280 views
0 votes
1 answer

Is there a limit on the number of words in bash command 'for file in words'?

Anyway, you need to print everything except ...READ MORE

answered May 27, 2022 in Linux Administration by Korak
• 5,820 points
394 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
606 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
2,621 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
7,738 views
0 votes
0 answers

Opening a binary file in VI and XXD

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

Apr 13, 2022 in Linux Administration by Rahul
• 9,670 points
964 views
0 votes
0 answers

How to convert decimal to hexadecimal in JavaScript

In JavaScript, how do you translate decimal ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
362 views
0 votes
0 answers

xxd usage (change magic byte to JPEG)

I create a simple test file like ...READ MORE

Dec 14, 2022 in Linux Administration by erzan
• 630 points
509 views
0 votes
1 answer

How do I use hexadecimal color strings in Flutter?

To use a hexadecimal color string in ...READ MORE

answered Mar 1, 2023 in Android by vishalini
10,890 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP