Skip to main content

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.

2 votes
2 answers
97 views

Machine code layout in the memory - Intel x86

I was asked to convert the following machine code to assembly in Intel syntax: 0x421a0770: 0D 00 3D 77 0x421a0774: AC 3D 11 2A 0x421a0778: 96 AB 77 04 0x421a077c: 90 2D 0D ...
Fsociety's user avatar
1 vote
1 answer
87 views

Why does od and my C++ code read in a different endianness than what is rendered by hex editors?

I noticed an odd behavior where od -H and Vim's hex editor (open a file and use the command :%!xxd) display different endianness for the same data. I wrote some C++ code that dumps the first uint32_t ...
archetypezero's user avatar
0 votes
2 answers
61 views

stuct.unpack() to read hex dump file data in different order

I am using struct.unpack() to read a hex dump file and convert it to its binary representation since only a few bits are of interest to me. Below is an example of one read. bin(struct.unpack('<...
Maze's user avatar
  • 49
3 votes
4 answers
113 views

How to split a continuous hex string into space-delimited hex blocks of 32 tuplets each?

I have a fairly long hex string Buffer.toString("hex") that I want to print to a log file in a block of 32 tuplets each. So basically going from ...
philk's user avatar
  • 2,090
1 vote
1 answer
153 views

Converting hexdump command to Format-Hex

I'm currently having trouble with converting the following command: echo -ne '\x08\x80\01' | hexdump -C As of right now, I had a command that worked for the majority of the case (e.g. \x08\x7F works)....
Clément Jean's user avatar
2 votes
1 answer
91 views

Powershell Reg Multi_SZ into String ( Export / Import Scenario )

Need your help :). Im trying to convert Roger Zanders wonderful Reg2PS into my own Powershell script which i want to use in Intune for some comfortable Registry configs. Greetings at this point to RZ! ...
Smithy 's user avatar
0 votes
0 answers
24 views

How to perform diffsception (diffing intermediary diff outputs together to filter out irrelevant changes)

So I've got 4 memory dumps from an emulator running a game in 2 different but similar scenarios, with 2 dumps taken seconds apart in each scenario. What I'm looking to do is filter out things that ...
Vawlpe's user avatar
  • 97
0 votes
0 answers
34 views

Nasm: Problem in print Hex info from BMP image

My goal with this code is, like Hexdump, print the hexadecimal information of the BMP image given as an argument by the terminal. The problem is that whenever I run the program I receive BM_ instead ...
David feoerwg's user avatar
-1 votes
1 answer
63 views

When hexdump is used with a -x option, are the bytes to the right of each group low addresses?

When I use hexdump directly, the output is in the form of two-byte sets, but when I use the -C option, I find that the output order has changed. $hexdump -x a.out 0000000 652f 6374 702f 7361 7773 0a64 ...
chen zhang's user avatar
2 votes
1 answer
170 views

Formatting powershell Get-Content byte code from file

I am able to get the byte code but 2 things I am trying to do here is format the bytecode so that there are 2 digits per byte. The leading zeroes are excluded. Remove spaces between the bytes ...
shawnixer's user avatar
2 votes
2 answers
40 views

How to fix hyphen for sed using hd -c

I have a file (c.txt) with the following output. This is only one item in a large file. 7,VE,Bank–Charges I am trying to run: sed -i 's/-/ - /g' c.txt to get the desired output of: 7,VE,Bank – ...
growler11's user avatar
  • 147
0 votes
0 answers
21 views

How to Read 2 byte data from the binary file using the linux command for e=windows machine?

I would like to know the command equivalent to: od −v −t u2 −w4 −An datafile.data | ./datafile for windows machine. here ./datafile is fortran compiled o/p using the following command gfortran ...
Megha's user avatar
  • 1
0 votes
0 answers
12 views

Information in binascii.hexlify() Doesn't Slice Correctly?

I'm attempting to take a binary data file exported from a program I'm using, hexlify it using the binascii module, and retrieve the data that I need so I can eventually output that data in a Qt GUI. ...
Xeuxs's user avatar
  • 5
0 votes
0 answers
54 views

writing a single sector into a dump binary file using vba

I need to recursively update, using excel vba, a dump binary file with a binary hex string 512 bytes long (1 sector). As i wrote in title, this hex string has to be written into a given sector (for ...
smecca's user avatar
  • 1
1 vote
1 answer
55 views

Recreate hexdump -C format as -e argument

I am trying to recreate the format that hexdump -C will output, namely 00000000 50 4b 03 04 2d 00 04 00 08 00 16 b5 ea 56 99 f1 |PK..-........V..| 00000010 ef 29 ff ff ff ff ff ff ff ff 0f 00 30 ...
Felix Dombek's user avatar
  • 14.1k

15 30 50 per page
1
2 3 4 5
27