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

How to print hexdump with indent

fmt.Println(hex.Dump([]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0})) It shows: 00000000 01 02 03 04 05 06 07 08 09 00 01 02 03 04 05 06 |................| 00000010 07 08 09 00 …
aj3423
  • 2,003
  • 3
  • 32
  • 70
-1
votes
1 answer

Return unsigned char array to main function

Background: My original main() is: int main(int argc, char *argv[]) { unsigned char output[16] = {0x00}; // copied from code // .... (some steps to calculate output[i]) for (i = 0; i < 16; i++) { printf("%02X ",…
TJCLK
  • 183
  • 12
-1
votes
1 answer

How to find a specific byte in many bytes?

I readed a file using Java and use HexDump to output the data. It looks like this: The first and second line: one:31 30 30 31 30 30 30 31 31 30 30 31 30 31 31 31 two: 30 31 31 30 30 31 31 30 31 31 30 30 31 31 30 31 I want to print the …
XuXing0430
  • 13
  • 3
-1
votes
1 answer

Opening a binary file in VI and XXD

I am attempting to modify the binary data of an executable program in Linux using Ubuntu. I have a file called a.out. I can dump it in hex using xxd a.out | less. Then in another terminal window, I run vi a.out. Vi's data is slightly different in…
Matthew
  • 3,886
  • 7
  • 47
  • 84
-1
votes
1 answer

What does these hex values mean?

I have a table of values of hex values (I think they are hex bytes?) and I'm trying to figure out what they mean in decimal. On the website the author states that the highlighted values 43 7A 00 00 mean 250 in decimal, but when I input these into a…
-1
votes
1 answer

How to build ASCII hex dump from a number of dec values?

I want to analyse some dec\hex strings (ethernet headers) in Wireshark. It only can open ASCII hex dump according to manual. Is there some software or a piece of code that can parse strings with hex values (as is, not dump it) and order it to hex…
-1
votes
1 answer

How do you write the hexdump -C function in C?

The first block of code below is an example of how I want my output to look like when I run my hexdump command in C. Atm, I don't know how to get the 3 columns of double spaces and I don't know how to add the ASCII representation and "." for…
-1
votes
2 answers

Kaitai code writing

I recently started kaitai-struct for dealing with arbitrary binary formats. I have created the .ksy file for my data and parsed it to targeted language that is java. Now can anyone point me how to pass the input file that has the data and how to get…
Srikar
  • 351
  • 5
  • 16
-1
votes
6 answers

Can't get the exact hexadecimal value from reading a file

Code => #include typedef struct { unsigned short c2; unsigned long c4; } TAKECH; int main() { TAKECH tch; FILE *fp_in; fp_in = fopen("in.txt","rb"); fread(&tch,6,1,fp_in); printf("First two bytes:…
cola
  • 12,198
  • 36
  • 105
  • 165
-1
votes
1 answer

how can I convert svg hexdump file to a readable xml file?

I am currently working with svg files, but the files cannot be edited as xml files (as text). If I open the file in sublime in Ubuntu, it appears as a hexdump file. And if I open the file in sublime in Windows, it appears as something not…
benbenben
  • 159
  • 1
  • 3
  • 10
-1
votes
1 answer

Why "Courier New" font doesn't have all unicode signs with equal width?

I have hexdump view in my application: I use Courier New font in java: private final Text contentText; contentText.setFont(Font.font("Courier New")); But as you can see some unicode signs have more width. There is some way or another font which…
xav9211
  • 191
  • 1
  • 3
  • 14
-1
votes
1 answer

To use a single command in converting from binary to ascii hex

I am converting binary data into hex and viewing this hex data in head from a continuous stream. I run the following where the conversion is from here echo "ibase=2;obase=10000;$(echo `sed '1q;d' /Users/masi/Dropbox/123/r3.raw`)" \ …
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
-1
votes
1 answer

How to parse C array in python

I've got a file containing the following C arrays: /* Frame bytes */ static const unsigned char pkt1[19] = { 0x83, 0x01, 0xbc, 0x4e, 0xd9, 0x09, 0x81, 0x03, /* ...N.... */ 0x79, 0x54, 0x55, 0x98, 0x69, 0x06, 0x0a, 0x12, /* yTU.i... */ 0x42, 0x83,…
B Faley
  • 17,120
  • 43
  • 133
  • 223
-1
votes
1 answer

What is an offset in a hex dump?

I'm trying to understand what an offset in a hex dump is. In particular, what purpose does an offset serve? I have googled many times but not found anything.
-1
votes
1 answer

How to decipher/interpret the contents of a file as shown in a Hex editor?

In connection with this question, I downloaded a Hex Editor to see just what values my SDF file contained in a certain location, which is supposed to tell me what version of SQL Server CE the SDF file was created with. I got the following…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
1 2 3
25
26