Questions tagged [hexdump]

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.

387 questions
10
votes
2 answers

What are these differences in two DLL file generated from the same source code

All my code is under source control, so I'm 100% sure that the source code hasn't changed. But if I build a C# DLL two times their content is slightly different. I can reproduce the problem 100% of the time by just building, and then building…
Roy T.
  • 9,429
  • 2
  • 48
  • 70
9
votes
3 answers

Hex digest for Python's built-in hash function

I need to create an identifier token from a set of nested configuration values. The token can be part of a URL, so – to make processing easier – it should contain only hexadecimal digits (or something similar). The config values are nested tuples…
lenz
  • 5,658
  • 5
  • 24
  • 44
8
votes
3 answers

Shell magic wanted: format output of hexdump in a pipe

I'm debugging the output of a program that transmits data via TCP. For debugging purposes i've replaced the receiving program with netcat and hexdump: netcat -l -p 1234 | hexdump -C That outputs all data as a nice hexdump, almost like I want. Now…
grimmig
  • 1,391
  • 2
  • 14
  • 24
8
votes
3 answers

pythonic way to hex dump files

my question is simple: Is there any way to code in a pythonic way that bash command? hexdump -e '2/1 "%02x"' file.dat Obviously, without using os, popen, or any shortcut ;) EDIT: although I've not explicitly specified, it would be great if the code…
peluzza
  • 329
  • 2
  • 4
  • 11
8
votes
2 answers

How to modify memory contents using LLDB?

What is the equivalent lldb command to the one shown below in GDB? (gdb) set {char}0x02ae4=0x12 The values are arbitrary examples. With GDB I was able to easily edit the byte code at a given hex address while looking at dumps in terminal. Since I…
user2079777
8
votes
1 answer

Endianness in Unix hexdump

The following *nix command pipes a hex representation of an IP and port (127.0.0.1:80) into the hexdump command. printf "\x7F\x00\x00\x01\x00\x50" | hexdump -e '3/1 "%u." /1 "%u:" 1/2 "%u" "\n"' The -e flag allows an arbitrary format to parse the…
shrizza
  • 91
  • 1
  • 4
7
votes
0 answers

Reading-in and converting raw binary data to integers in R

I have a binary file containing numeric values coded as signed or unsigned integers of different lengths (mostly 2-/4-byte). To process this data I read the desired section of the file as raw vector with readBin() and then try to convert it to…
mjktfw
  • 840
  • 6
  • 14
7
votes
1 answer

True memory locations of C variables

In an effort to learn more about C, I have been playing with it for the past 2 days. I wanted to start looking at how C is structured during runtime so, I built a crappy program that asks a user for two integer values, then prints the memory…
Joshua Faust
  • 306
  • 2
  • 16
7
votes
1 answer

Hexdump -C but decimal instead of hex

centos 6.5 - running hexdump $ hexdump -C filecsv 00000000 44 4f 53 2c 20 50 61 74 69 65 6e 74 2c 20 41 63 |DOS, Patient, Ac| 00000010 63 74 20 23 2c 20 4d 52 20 23 2c 20 54 69 6d 65 |ct #, MR #, Time| Love this format but want hex to be…
Tim OBrien
  • 71
  • 1
  • 3
7
votes
2 answers

Output file with one byte per line in hex format (under linux bash)

As the title says, here is an example: $ cat test.txt ABCD $ hd test.txt 00000000 41 42 43 44 0a |ABCD.| 00000005 my desired output would be: 41 42 43 44 I know that this is possible with sed, awk and stuff,…
Oliver R.
  • 283
  • 4
  • 6
6
votes
4 answers

Output 64 bit integer with hexdump

I currently work on some binary data. In order to check and debug the data previously generated by my application I use hexdump, facing the obstacle of hexdump not appearing to be able to extract a 64-bit integer field. Given the following minimal…
Lars Hadidi
  • 558
  • 1
  • 5
  • 15
5
votes
0 answers

How do I compare two EXE files, find differences and decompile those with Cutter or Radare2?

After struggling for days, I'd like to ask the community :) I have two exe files. Both at the same size and pretty big (around 80MB). The first exe is the original file, which has been compiled some time ago. I also have the corresponding PDB…
Knutwurst
  • 53
  • 2
  • 8
5
votes
1 answer

Windows batch equivalent of hexdump -ve '1/1 "%.2x"'

I need to get the hexa value of a file i have. On linux, this was Simply done with : hexdump -ve '1/1 "%.2x"' Filename However, on Windows, i couldn't found a good equivalent for hexdump. I'm using MinGW64, so basically i was looking for a…
Ablia
  • 191
  • 2
  • 10
5
votes
2 answers

What's a Hex Dump - What does it mean?

thegladiator:~/cp$ cat new.txt Hello World This is a Trest Progyy thegladiator:~/cp$ hexdump new.txt 0000000 6548 6c6c 206f 6f57 6c72 2064 6854 7369 0000010 6920 2073 2061 7254 7365 2074 7250 676f 0000020 7979 000a …
Nishant
  • 20,354
  • 18
  • 69
  • 101
5
votes
3 answers

Command to convert hexdump back to text

I am using Catfish to find files containing certain text. Some of the files found instead of plain text contain something which looks like a hex dump: 3c3f 7068 700a 0a66 756e 6374 696f 6e20 7573 6572 5f65 7869 7374 7328 2475 6e29 207b 0a09 7265…
Majid Fouladpour
  • 29,356
  • 21
  • 76
  • 127
1
2
3
25 26