Ask Your Question
0

can a single text file hold 2 or more frames to be recognized during hex dump import

asked 2025-10-30 10:31:30 +0000

can a single text file hold 2 or more frames to be recognized during hex dump import

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2025-10-30 19:51:22 +0000

cmaynard gravatar image

Yes. From the text2pcap man page:

Text2pcap is a program that reads in an ASCII hex dump and writes the data described into a capture file. text2pcap can read hex dumps with multiple packets in them, and build a capture file of multiple packets.

Wireshark itself supports the same thing from "File -> Import from Hex Dump...".

edit flag offensive delete link more

Comments

From the same manual page on how to do this: "Each packet must begin with offset zero, and an offset zero indicates the beginning of a new packet."

Jaap gravatar imageJaap ( 2025-10-31 08:28:27 +0000 )edit

hi thank you all for the answers & comments 1. can u provide an example for 2 packets? 2. can the text2pcap program be a one stage prior to "File -> Import from Hex Dump.." or is it basically tha same thing?

shambion gravatar imageshambion ( 2025-11-01 17:47:49 +0000 )edit

i tried this file and it only recognizes the 1st packet.

000000  01 1B 19 00 00 00 0F F1 0A D0 00 00 88 F7 01 02
000010  00 2C 00 00 00 00 1F AA A8 82 DE 85 6E E2 00 00
000020  00 00 00 04 00 00 0F F1 0A D0 00 00 A6 A5 F4 E7
000030  26 AC 19 8D 53 23 22 47 59 F6 00 00 93 F5 52 9D

000000  01 1B 19 00 00 00 00 82 EA 7F 00 02 88 F7 09 02
000010  00 36 00 00 00 00 1F AA A8 82 DE 85 6E E2 00 00
000020  00 00 00 04 00 80 EA 00 00 00 00 00 A6 A5 03 4D
000030  00 00 E7 2D 77 BB 3B 9A C6 D4 00 04 00 00 0F F1
000040  0A D0 ...
(more)
shambion gravatar imageshambion ( 2025-11-01 18:21:05 +0000 )edit

1) For me the imports perfectly well as two PTP packets? Nothing more than text2pcap import.txt import.pcap, then open the `import.pcap file as normal.

2) The two things are basically the same, text2pcap is a commandline utility for this, the import from hex dump is a GUI front end for the same functionality,

Jaap gravatar imageJaap ( 2025-11-02 15:08:59 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2025-10-30 10:31:30 +0000

Seen: 77 times

Last updated: Oct 30