This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

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

asked Oct 30 '25

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

1 Answer

0

answered Oct 30 '25

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...".

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."

User 39986 ( Oct 31 '25 )

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?

User 61390 ( Nov 01 '25 )

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 00 00 4C D8 01 87
User 61390 ( Nov 01 '25 )

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,

User 39986 ( Nov 02 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.