A hex dump is a hexadecimal view of data. Looking at a hex dump of data is commonly done as a part of debugging, or of reverse engineering. In a hex dump, each byte (8-bits) is represented as a two-digit hexadecimal number.
Questions tagged [hexdump]
387 questions
5
votes
1 answer
Byte conversion
I have two img file. Origin (2GB) and Destination (4GB),
They are the result of some sort of encoding wich I'm trying to identify and revert.
So in order to successfully revert encoding I have to see if I'm able to obtain again Origin from the…

Gorgia666
- 902
- 1
- 6
- 11
5
votes
3 answers
Hex dump parsing in perl
I have a hex dump of a message in a file which i want to get it in an array
so i can perform the decoding logic on it.
I was wondering if that was a easier way to parse a message which looks like this.
37 39 30 35 32 34 35 34 3B 32 31 36 39 33 34…

mtanish
- 148
- 3
- 9
5
votes
1 answer
Read from serial port and store in hexadecimal
I have a vhf radio which sent a status message continuosly through the serial port, and I need the messages that I got to be stored as hex data in a text file
I tried hexdump command as shown below, and the data that I've got from vhf radio is…

Latifa
- 131
- 1
- 1
- 4
5
votes
3 answers
importing hex stream into wireshark
I have a 64 byte hex stream of a frame-
000A959D6816000A959A651508004500002E000000004006AF160A010101C0A8000A11D71EC6000000000000000050000000AD840000000102030405CC904CE3
How can I import it into Wireshark and see the whole packet?
The option of…

tcpip
- 351
- 2
- 4
- 16
5
votes
10 answers
Any Generic Utilities or Libraries for Converting Hex Dumps into Human-readable Form?
I work a lot with serial communications with a variety of devices, and so I often have to analyze hex dumps in log files. Currently, I do this manually by looking at the dumps, looking at the protocol spec, and writing down the results. However,…

Kristopher Johnson
- 81,409
- 55
- 245
- 302
5
votes
2 answers
How to hexdump large files
I would like to output a hexdump result of a 8go file. Is it possible to do it piece by piece ? How to specify a limited numbers of lines (I have read the man page and it seems to correpond to -n length, but it didn't work)

user1611830
- 4,749
- 10
- 52
- 89
5
votes
1 answer
scapy hexdump()
i wonder which hexdump() scapy uses, since i would like to modify it, but i simply cant find anything.
what i DO find is:
def hexdump(self, lfilter=None):
for i in range(len(self.res)):
p = self._elt2pkt(self.res[i])
if lfilter is not…

user1451340
- 387
- 1
- 4
- 12
4
votes
1 answer
Why does first address equal 0000 when .org 8000 in assembly?
I watched Ben Eater's video about building a computer based on 6502 chip and I'm stuck in part 3 (Assembly language VS Machine code). He is programming 32k EEPROM and he programmed by assembly to blink LED. This is assembler he used…

Heroz
- 143
- 2
4
votes
2 answers
Creating hex dump in Objective-C
I want to create a hex dump of a binary file in Mac OS X.
In all apps in Mac OS, when you navigate to /Contents/Resources/, there is a file (or more) with the same name as the app.
I want to write an application in Objective-C that can read that…

Bas Jansen
- 61
- 1
- 4
4
votes
1 answer
Advantage for hex formats like SREC or Intel HEX
I want to ask if someone can explain me the benefit for using hex formats (e.g. by Motorola S-Record or Intel HEX) over using direct binary images like for firmware or memory dumps?
I understand that it is useful to have some Meta information about…

Andreas
- 342
- 1
- 10
4
votes
2 answers
Why can't I find the int value in a binary
I compiled the following program on a 64-bit linux machine:
#include
main()
{
int a = 12345;
if (a == 12346)
printf ("YES\n");
return;
}
If I output the binary file using hexdump, I can find the 12346 (which is 303a…

Matt
- 165
- 2
- 8
4
votes
7 answers
Separate data in a text file
I have a big chunk of data (hexdump) which includes thousands of small images and the structure of the data is something like this.
20 00 20 00 00 10 00 00 20 00 20 00 00 10 00 00 ...
Where the (20 00 20 00 00 10 00 00) is the…

Michael
- 644
- 5
- 14
- 33
4
votes
3 answers
Write different hex-values in Python2 and Python3
I'm currently porting a Python2 script to Python3 and have problems with this line:
print('\xfe')
When I run it with Python2 python test.py > test.out, than the file consists of the hex-values FE 0A, like expected.
But when I run it with Python3…

Jakube
- 3,353
- 3
- 23
- 40
4
votes
1 answer
Recursively search directory of binary files for hexadecimal sequence?
The current commands I'm using to search some hex values (say 0A 8b 02) involve:
find . -type f -not -name "*.png" -exec xxd -p {} \; | grep "0a8b02" || xargs -0 -P 4
Is it possible to improve this given the following goals:
search files…

Helen Che
- 1,951
- 5
- 29
- 41
3
votes
2 answers
Go - password security in binary
I intend to save a password/secret key in my Go application to be used in communication with some other applications. I wonder how to secure it from for example someone obtaining the binary and searching for it in some hex viewer. Are such security…

ThePiachu
- 8,695
- 17
- 65
- 94