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
0 answers

How to find CRC byte of a image file

I have a image file named "xyz.img". I need to change some of the content in the image file (say one or two bytes). I hexdump it by using the command hexdump -x xyz.img > hex1 Now when i am opening the "hex1" using vi, it is showing like…
Sourabh Das
  • 73
  • 1
  • 2
  • 9
0
votes
2 answers

How the encode method return an non-hex code point in Python?

There are some special chinese words like '觱' '踨', when I check its code point of gb18030 as follow. >>>u'觱'.encode('gb18030') '\xd3v' I have been confused about the code point '\xd3v'. It's not a correct hex-digits. Who can explain it clearly? …
Qinghua
  • 351
  • 3
  • 10
0
votes
1 answer

Re-create image from hex code

We created an app on Android that a user can upload an image. The image is send through a post request on a Rails application as a bitmap. An example of what I get is this. I want to use this hex code string in order to re-create the image and then…
user2911232
0
votes
0 answers

Python hexdump creates empty text file

I am currently making a python hexdump program that writes the hex values of a disk image into a new text file. But for some reason the textfile created is always just full of white space. I dont think the text file is actually "empty" since its…
0
votes
0 answers

Convert raw data into a structured table

I have extracted a raw data file from a magnetic tape using the dd command Afterwards, I managed to read the extracted data with Bless HexEditor and I found out that at offset 0x200000 there is a table stored. I would like to extract this data and…
QGA
  • 3,114
  • 7
  • 39
  • 62
0
votes
2 answers

TCP Socket garbage

i have a TCP protocol server-client program. Unlike a lot of people, i am not getting errors because my send function isnt sending as much bytes as it should. My problem is because the recv() function catches a los of weird characters. I hexdumped…
user3013172
  • 1,637
  • 3
  • 15
  • 26
0
votes
1 answer

How to hexdump few lines in a large using only line number.(Not bytes)

I am using hexdump to display file in a readable format. The file is quite large and i know only the line numbers. length of lines are uncertain (may be 10 characters or 100 characters). Is there any option to hexdum few line suppose 5 to 10 or…
Shail_42
  • 201
  • 1
  • 2
  • 10
0
votes
2 answers

Hexadecimal editing with and without ollydbg weird issue

I am very confused with this one. I was trying to do some manually exe patching because I had an idea for a program. so I made a really small file in assembly (5kb) that just basically creates a txt file. I opened it up with ollydbg and added this…
Darrin Woolit
  • 69
  • 1
  • 7
0
votes
2 answers

C void Pointer on mainframe

I'm currently working on modifying a dump program, but I can't figure out how to properly navigate with a void pointer. Below is the function that I'm working in, and the instruction that I'm trying to execute. I've tried casting mem to a struct,…
user1527185
0
votes
1 answer

C Memory Allocation Error

Hi I am working on a project, where I need to Pack files into a PFS Image. I am writing an application using the ANSI C language. I am getting each files Hexdump and other attributes and storing inside variables. Once all Information about the Files…
Andrew
  • 83
  • 1
  • 12
0
votes
0 answers

How to make hex file exact same size with the edited one

I have edit some hex values in a file .rpf in HxD, after I finish editing the edited file reduced 5 bytes (no line or value is removed just edited 1F 23 0B AS to U1 45 BD 37) Is there anyway I could the edited file exactly same size as the original…
user2832318
  • 33
  • 1
  • 6
0
votes
1 answer

Why is the hexdump of my Unicode text file different from the byte sequence I manually entered?

Why does the following lead to such a different byte sequence in the hexdump? $ echo -e "\u0f67\u0fb9\u0fa8\u0fb3\u0fba\u0fbc\u0fbb\u0f83\u0f0b" > uni $ hexdump uni 0000000 bde0 e0a7 b9be bee0 e0a8 b3be bee0 e0ba 0000010 bcbe bee0 e0bb 83be bce0…
jollyroger
  • 659
  • 1
  • 10
  • 19
0
votes
1 answer

Storing a Hex Dump inside an Array in C

I am trying to create a PFS De-compressor using the C Language. For this Project, I need to analyse the Archive's Hex dump from which I will get the Files Offsets, names and Sizes. Do you think it is good practice to store a Hex dump in a char…
Andrew
  • 83
  • 1
  • 12
0
votes
1 answer

Hexdump of struct not outputting correct information

I have recently been porting some C code to C++. I have a function that outputs a hexdump and have changed it from using printfs to couts(eventually it will be outputted to file, so will use c++ streams anyway). The example code is as…
const_ref
  • 4,016
  • 3
  • 23
  • 38
0
votes
1 answer

Search for string in hex dumps

Oracle's JDBC driver has a new feature in 11.2 whereby it can log all network packets, but in the log file each packet appears as a separate hex dump, in this format: Oct 23, 2013 9:14:46 AM oracle.net.ns.Packet receive TRACE_20: 11EEA7F0 Debug:…
Robin Green
  • 32,079
  • 16
  • 104
  • 187