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
0
votes
1 answer

ASN.1 hexdump of PDU

Am learning on to understand ASN.1 Rectangle encode program. Currently the program given on the website is printing in XML format and generated ber file. I wanted to print/read the PDU in hex encoded format (hexdump). Initially, I tried opening the…
Gopi
  • 340
  • 4
  • 12
0
votes
2 answers

What do hex values in a hex dump correspond to?

Running xxd 1.py returns this output: jrfar /cygdrive/c/Users/jrfar/Documents/stack_overflow $ xxd 1.py 00000000: 776f 7264 735f 6e75 6d5f 6469 6374 203d words_num_dict = 00000010: 207b 2731 273a 276f 6e65 272c 2027 3227 {'1':'one', '2' 00000020:…
Joseph Farah
  • 2,463
  • 2
  • 25
  • 36
0
votes
1 answer

what is iteration count and byte count in hexdump?

It was really confusing to deal with hexdump command in linux. Basically I am trying to get the output from the /proc/device-tree. I tried to use the hexdump but ended up with confusion. My dts contains vvn = <0 0 2 2 0 0>; I got a proc node under…
optimus prime
  • 764
  • 1
  • 13
  • 39
0
votes
1 answer

Turning hexadecimal representation of code segment back to binary

The malware samples provided by Microsoft in the Kaggle challenge (https://www.kaggle.com/c/malware-classification/data) contain hexadecimal representation of the code segment. An example: 00401000 00 00 80 40 40 28 00 1C 02 42 00 C4 00 20 04…
user1734905
  • 333
  • 3
  • 14
0
votes
1 answer

What's the relation between hexdump and asm?

So I'm learning Intel x86 and in my class we went over xxd and objdump, which are hex dump commands. However I was never explained what a hexdump really was, so after a little research all I could find is that is was, quite simply, a dump of a…
Delupara
  • 359
  • 1
  • 4
  • 10
0
votes
2 answers

View the contents of a gzip archive in hexl mode

I want to write a function, similar hexl-find-file, that will open a gzipped file and show the contents in the hexl-mode. How would I do that?
Igor
  • 2,673
  • 5
  • 33
  • 39
0
votes
2 answers

Getting the hexdump of a given function

I want to get the hexdump of a given function. Until now objdump -d a.out --start-address=0x400630 and --stop-address=0x400679 is the best solution what I have found, however I do not know how to extract only the opcodes from the output. For example…
robert
  • 3,539
  • 3
  • 35
  • 56
0
votes
1 answer

Generating a machine code using SPIM

I have to do an assignment which consists of developing a simulator for MIPS instructions. To test this simulator I need as inputs a code machine or a hedump code of an assembly file. I tried to use SPIM on Linux but when I check the help menu I can…
user3076262
  • 5
  • 1
  • 4
0
votes
0 answers

how to take screenshot of whole windows screen not just the part that is visible

I know there is this question on Stack Overflow that answers how to do this in Android Android solution, and another question on stack overflow that asks and answers how to take a screeshot of the whole webpage at once even the part that are not…
akinmail
  • 638
  • 6
  • 14
0
votes
0 answers

Extract data between two matched patterns in a binary file containing non-ASCII characters using bash

I am trying to extract a jpeg image from a binary text file. I want to extract all data between 0xFF 0xD8 (start of image) and 0xFF 0xD9 (end of image) inclusive. Earlier, I have successfully run the following command to get the desired image.jpg…
0
votes
0 answers

Convert hex-dump to binary file

I have some hex dumps that look like this: 0x000eb3a8 0005a5a8 0005a5b0 ........ 0x000eb3b0 000e8918 0005a7b8 ........ 0x000eb3b8 00056018 00000001 ..`..... 0x000eb3c0 00000000 000b8450 .......P 0x000eb3c8 000b83b0 00000007 …
Georg P.
  • 2,785
  • 2
  • 27
  • 53
0
votes
1 answer

How can two 100% identical files have different sizes?

I have two 100% identical empty .sh shell script files on Mac: encrypt.sh: 299 bytes decrypt.sh: 13 bytes (Actually this size is correct, since I have 13 bytes: 11 character + two new line) The contents of encrypt.sh and its hexdump: The contents…
Gábor DANI
  • 2,063
  • 2
  • 22
  • 40
0
votes
2 answers

How do you Pipe hex data directly to bc and converting it to binary - cleanly?

Hex (character) to binary conversion is useful, especially when you want to look at a few bits mushed inside some hex string. It is for this reason that I would like to pipe some hex data to bc (the Unix program known as 'basic calculator') and…
Xofo
  • 1,256
  • 4
  • 18
  • 33
0
votes
2 answers

How to open and read .UPER file

I have an .UPER file which contains binary value. In fact, this file is encoded asn 1 file. I searched on internet but I couldn't find any specific application to open and read this type of file. I just heard about hexdump. but I not sure about that…
Questioner
  • 662
  • 1
  • 10
  • 26
0
votes
1 answer

Read hex data into less

I want to give a big data file to less -s -M +Gg such that read current given data in less -s -M +Gg. While-loop example (see ntc2's answer) Less command explained here. Replacing the yes by a binary file which is converted to binary ascii and…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697