Questions tagged [hexdump]

37 questions
72
votes
2 answers

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.@.c{...ah.@.@| 000001c0 00 40 00 40 00 40 00 40 …
Rodnower
  • 2,259
56
votes
5 answers

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 the image should be encoded in binary.
Templar
  • 945
34
votes
3 answers

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.
18
votes
3 answers

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 finding out that it suddenly starts wrapping lines…
Vi.
  • 17,755
17
votes
1 answer

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 I get this: 5aacfb5a8dc0155dd0269124c9e81789 So why is hexdump…
neubert
  • 7,574
  • 39
  • 94
  • 156
14
votes
5 answers

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 outputs of xxd infile and hexdump infile, and found three…
tanon
  • 141
12
votes
1 answer

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=/dev/mem | hexdump -C | grep “string to search for” So,…
KingNeil
10
votes
1 answer

How can I find TCP packets with specific data in a Wireshark capture?

I'm trying to find a bunch of specific data in a Wireshark capture. First of all I need to be sure that the data is actually there, which has been confirmed in my previous post. Now I'd like to go a step further and actually filter the mentioned…
Dominique
  • 2,373
8
votes
5 answers

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 endian-ness from that native to the system. In…
EHN
  • 620
7
votes
1 answer

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 00000000 00000000 00001101 ...... 000000c: 01001001…
learnerX
  • 444
7
votes
1 answer

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 xxd data.dump It gives me output like: 00000000: 80ff…
bladekp
  • 279
  • 1
  • 3
  • 7
5
votes
2 answers

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 there a way to do this with basic command line…
5
votes
1 answer

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 Gparted I changed the name and the label of the…
Nicryc
  • 765
4
votes
1 answer

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 I've tried. There are only two hints about them…
4
votes
1 answer

How can I see my GUID partition table (gpt) physically with hexdump?

With hexdump, I can see the binary content of the master boot record, for example. Similarly, I want to see what my gpt looks like. Is it located in EFI System Partition somewhere? I have only found different .efi files, and no hint for anything…
1
2 3