This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to parse a String hex text

0

I have a packet (hex string) which I have framed programmatically. Need to Parse the hex String to display the human readable form. What command should I use to Parse the HexString. I am looking for a command line interface solution. Thanks, Chetan

asked 22 Sep '16, 06:14

Chetan%20Ragi's gravatar image

Chetan Ragi
11336
accept rate: 0%

Do I get you right that you have assembled a packet of some protocol, but instead of saving it as binary data, you've printed it out as hex string, and you want to dissect it using Wireshark? If this is the case, then there is the "import from hex dump" functionality of Wireshark in the File menu.

You have to print the hex data in the following form:

000000 ab cd ef

where 000000 is an offset and ab cd ef are the actual data.

You also need to tell Wireshark which is the lowest layer in those data (Ethernet, IP or possibly some other one) by choosing the proper encapsulation from the drop-down list.

(22 Sep '16, 07:37) sindy