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

Convert larger value hex string into bytes using java

I am trying to convert a larger value of hex string into bytes. The information which is get about converting signed bytes is the max is 0x7F equals to 127 only. But now mine I want to convert hexa value C6 into bytes which i should receive 198. Are…
raaj5671
  • 105
  • 4
  • 12
0
votes
3 answers

Binary to CSV record Converstion

Hi FolksI have been working on a python module which will convert a binary string into a CSV record. A 3rd Party application does this usually, however I'm trying to build this logic into my code. The records before and after conversion are as…
Nachiketh
  • 193
  • 2
  • 18
0
votes
0 answers

Best Way to Hexdump Shellcode

I'm trying to get shellcode from some programs I wrote. Besides taking the hex code from an objdump -D shellcode, is there a better way to purely hexdump a string? I've thrown it through hexdump as well, but that spits out way too many lines, and…
WhiteMask
  • 648
  • 1
  • 5
  • 17
0
votes
2 answers

numpy.array.tofile() binary file looks "strange" in notepad++

I am just wondering how the function actually stores the data. Because to me, it looks completely strange. Say I have the following code: import numpy as np filename = "test.dat" print(filename) fileobj = open(filename, mode='wb') off = np.array([1,…
paul23
  • 8,799
  • 12
  • 66
  • 149
0
votes
0 answers

Text to hexadecimals using hexdump - æøå characters

Using a shell/bash script, I need to convert some text to hexadecimals so I pipe the source text into hexdump, so far so good. The problem is æøå characters. They show up fine in the console (UTF-8), but the hexadecimal values hexdump provides isn't…
0
votes
1 answer

How to create a pointer of a specific size, then have it point to a specific address in memory

I want to move through a hexdump one byte at a time, using a pointer, until I find a specific sequence of bytes that is X bytes long. To do this, I need to cast a pointer to a size of X bytes. For example, a pointer for a size of 3 bytes. I know…
0
votes
1 answer

How to find/print the offset of a hexdump in C

I have a block of memory represented as a collection of hex nybbles. This is viewed in a hex dump format where the value of the left column is the first two hex digits of the offset in that row. The column heading for each byte is the last digit of…
0
votes
0 answers

Python Banner Grabber

I'm trying to make a banner grabber that prompts a user for their ip address and port. What I have so far is: (Here's a pic of the bannergrabber code if the site shows it weird https://i.stack.imgur.com/PqpJf.jpg and a pic of the hexdump…
0
votes
1 answer

How to remove \n from a file on ubuntu?

So I'll to the point. I have an csv file, and when I opened it on excel and on text editor it's showing the different line number. And I think it's because the \r or \n special character, and the different way to read file of excel and text…
Kenny Basuki
  • 625
  • 4
  • 11
  • 27
0
votes
1 answer

Python - Scapy raw hexadecimal view

I building a sniffer and I want to take the data from the Raw layer of a packet and show it as hexdump in a wx.TextCtrl. let's say the Raw is ABC it will show 65 66 67. I tried : self.txt.SetLabelText(" ".join(map(hex,str(pkt[Raw])))) It raises…
oridamari
  • 561
  • 7
  • 12
  • 24
0
votes
1 answer

Fastest way to read 2mb binary file in decimal or hex?

im trying to read a binary file into my own hex editor using a datagridview. this was my initial approach FileStream RawD = new FileStream(ECUFileName, FileMode.Open, FileAccess.Read); BinaryReader RawB = new BinaryReader(RawD); then i've tried…
waynemodz
  • 118
  • 9
0
votes
2 answers

Reading binary file in C++ and output result as hexdump

I'm building a simpler version of xxd for a school project and I'm getting hung up on the file output when reading binary files only (i.e. when I read plain text files, everything works as expected). Expected output: 0000000: 504b 0304 1400 0000…
djthoms
  • 3,026
  • 2
  • 31
  • 56
0
votes
2 answers

Converting .raw file into Hex

I have a .raw image file, and I'd like to use python3 to read all the data from the file and print a hex dump of this image. If possible, i'd like it to run in the terminal window. This is the code I have found and adapted so far: import sys src =…
user4358169
0
votes
1 answer

hexdump and reading binary files to text

Could someone tell me what the fraction for the hexdump command in linux means hexdump -v -e '7/4 "%010u "' -e '"\n"' binary-file-name I believe it tells hexdump when to stop reading the binary file and start another line? im unsure and i couldnt…
mcrouch
  • 41
  • 1
  • 8
0
votes
1 answer

Using Scanner to display entire line if the line contains any part of a string match (Java)

so I am working on this a project that analyzes hex dumps for specific file signatures. The problem I am having is when trying to analyze dumps that are large in size 16+ GB, I get a OutOfMemoryError: Java heap space error. So my thought is to…