Questions tagged [hexdump]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Unable to Launch Partition

I have deleted Linux partition from my drive and now I cannot see it, only empty drive. After typing diskutil list: /dev/disk0 (internal, physical): #: TYPE NAME ...
0 votes
0 answers
174 views

How to split a long lines hex string?

I've a long hex string like this 100000006465780A3033350025979BA5B30D4516F6. Is there an easy way I can split these with a space per hex coded byte so I get 10000000 64 65 78 A3 03 33 35 00 25 97 9B ...
  • 1
2 votes
0 answers
448 views

How can I interactively diff large binary files?

I'm trying to compare hex-dumps of some 500GB disk images. I can easily view parts of the files by piping hd into less. I'd like something similar to interactively diff them without having to read the ...
1 vote
1 answer
849 views

Where does NTFS store the label of a partition?

I'm using a hex editor (wxHexEditor) to explore a hard drive content. I'm looking for where the label of a partition is stored. So the drive I'm exploring is a GPT drive formatted in NTFS. With ...
  • 603
0 votes
1 answer
483 views

Why different hex editors show different binary for a file?

When I open a binary(in this case it is C:\\Windows\\System32\\notepad.exe), different hex editors show different result each other, for the one same file. I tested it on starting point of section ...
  • 103
5 votes
1 answer
11k views

View serial device output in console in hex

I'm able to convert my serial device output to hex format doing these two commands: cat /dev/ttyUSB0 > data.dump #send some data to serial device, and interrupt cat using Ctrl+C after some time ...
  • 249
0 votes
0 answers
244 views

How to shift bits in hexdump

I'm trying to visualize the bitmap of a frame buffer using hexdump, however the data is shifted left by two. Is it possible to use the hexdump (or other binary file visualization tool like xxd) ...
0 votes
1 answer
499 views

What are the "line" numbers in Wireshark (and other hex editors/viewers)?

This is probably a really simple question that has an answer elsewhere, but I couldn't think of the right words to make an effective search, so here I am. Obviously, if this is a duplicate question, ...
  • 103
0 votes
1 answer
700 views

Using hexdump to replicate xxd command

On my current workstation, I only have hexdump and I am not allowed to install other packages such as xxd. So I need to translate this xxd command to an hexdump equivalent echo "my home is very good ...
1 vote
1 answer
1k views

How to extract a segment of a binary file based on starting and ending hex strings

I have a large binary file (several hundred GBs) and I want to extract a segment from it. I know the hex strings of the beginning and ending points.
  • 11
0 votes
1 answer
8k views

Convert hexdump to tar file

I have a hex dump as 1f8b 0800 3416 1259 0003 edcf 310e c230 0c85 61cf 9c22 1708 b2d3 909e a7a2 5d90 1028 7581 e353 d401 2660 a910 d2ff 2d6f f01b 9ec7 615f 07df facd 6535 3a2b 253f d2da 9dbe e622 ...
28 votes
3 answers
53k views

Can sublime text be used as hex editor?

I am trying to open the skype .dat hex files and I would like to know if I can use Sublime text instead of the other 'dedicated' hex editors.
1 vote
1 answer
3k views

Copy contents of a binary file as hex characters

I want to copy the contents of a binary file as hex characters. Notepad++ Plugin ASCII to Hex does not work, because the characters are not ASCII. In TextPad 5.3, the hex mode does not have any copy ...
0 votes
1 answer
243 views

What is this data? Resource Hacker

I'm new to using Resource Hacker to alter *.EXE and *.DLL files and I need help understanding all the data it provides when "opening" these files. More specifically, using Res Hacker, I opened ...
1 vote
1 answer
794 views

Get-Content with argument -Tail takes indefinite time

When I execute Get-Content -ReadCount 0 -encoding String -literalpath "D:\file" on a file, it dumps the hex content within a minute, but when I execute Get-Content -ReadCount 0 -tail 1 -encoding ...
1 vote
0 answers
763 views

Formatting the output of objdump -sj .text

I am hoping to get the contents of the .text section, of a Microsoft PE file using a linux command. When I use objdump -sj .text filename.exe the output consists of the offset, in hexadecimal ...
0 votes
1 answer
840 views

Hexdump (specifically xxd) output for exec files

When I run a Hexdump using the command xxd -b "textile.txt"in OS X, the terminal prints both the binary, and the actual ASCII equivalent in the right-most column, showing the text files contents in ...
1 vote
1 answer
1k views

How to get ascii from a hexdump using hd?

I have this hexdump: 0100 0000 3f00 0000 0a59 6f55 90df 0100 0f00 0000 6d6f 746f 726f 6c61 2058 5431 3036 3839 3744 3245 3430 3630 3737 4143 3531 3632 3930 3937 3244 3933 3845 4343 I believe it's ...
  • 285
3 votes
2 answers
3k views

Can hexdump (hd) or octal dump (od) be used to display binary data as zeros and ones?

Is there a way to display the binary contents of a file as zeros and ones? So instead of something like this: DE AD BE EF We could get output like this: 11011110 10101101 10111110 11101111 Is ...
6 votes
1 answer
6k views

How do I dump raw binary 'bits' from a file, without line numbers and ASCII interpretation?

How do I dump a "pure" and plain binary sequence of bits? For example, I have this: 0000000: 10001001 01010000 01001110 01000111 00001101 00001010 .PNG.. 0000006: 00011010 00001010 00000000 ...
  • 314
17 votes
1 answer
2k views

hexdump vs actual file contents

When I do hexdump filename.txt I get the following as output: 00000000 ac5a 5afb c08d 5d15 26d0 2491 e8c9 8917 00000010 When I do <?= bin2hex(file_get_contents('filename.txt')); ?> I get this:...
  • 6,121
1 vote
1 answer
406 views

Solve this hex riddle! - What went wrong with my output redirection?

Following on from my question TF101 Android: Image block device via adb in which I tried unsuccessfully to save a raw image of a block device by output redirection, this question tries to determine ...
  • 215
0 votes
4 answers
21k views

How do you obtain 'raw binary dump' of a file?

I came through it in a question - What in the world is a .el8 file?. I am curious how @slhck determined that the file in question was pointing to the software - eLecta
11 votes
1 answer
16k views

Attempting to access RAM /dev/mem... says "Operation not permitted"

I am using Ubuntu 12.04 I read the following tutorial on how to access the contents of RAM in Linux.... http://www.rootninja.com/using-dd-to-search-for-strings-in-memory-or-devices/ Code: dd if=/...
user avatar
2 votes
1 answer
467 views

Why does newline come before space in the output of hexdump?

Using hexdump, printing these characters in the "canonical" format gives the output that I expect, while the default format throws me off. $ echo " " |hexdump # Reversed? 0000000 ...
65 votes
2 answers
18k views

What does an asterisk "*" mean in hexdump output?

I print MBR with hexdump and I get the following output: 000001a0 67 60 6f 70 65 72 61 74 69 6e 67 60 73 79 73 74 |g`operating`syst| 000001b0 65 6d 00 40 00 63 7b da c5 f5 61 68 00 40 00 40 |em....
  • 2,059
4 votes
1 answer
2k views

Is this a File Header / Magic Number?

I've got 120,000 files (way more, actually; this is just an arbitrary subset) of an unknown type. Linux file does not identify them (not that they're necessarily Linux files), nor do any other methods ...
2 votes
0 answers
147 views

Identify recovered filetype

I'm searching some info about this file. It was recovered from a failed HD, with Ontrack EasyRecovery. The file extension may not be accurate. I tried with TrID (I'm the developer), and based on the ...
  • 149
56 votes
5 answers
17k views

Why don't you see binary code when you open a binary file with text editor?

Why don't you see binary code when you open a binary file with text editor? For example, when I open an image with text editor, I see some weird characters and also some human readable characters; but ...
  • 925
12 votes
5 answers
29k views

hexdump vs xxd format difference

I was searching for how to do a reverse hexdump and found xxd mentioned. However, it does not seem to work with simply: xxd -r hexdumpfile > binaryfile I then compared the difference between ...
  • 121
8 votes
5 answers
7k views

Is there a utility like hexdump that will handle non-native endian-ness?

Hexdump's ability to read binary data and format it appropriately so it can, for example, be piped to awk is very useful, but I regularly need to read files in which the binary data is of a different ...
  • 610
12 votes
3 answers
47k views

How to convert file data to plain hex?

How to easily convert to/from plain machine-readable hexadecimal data (without any paddings/offsets/character view) with xdd or hexdump? I'm tired of digging of some special format strings (and ...
  • 16.1k