What's new

binary lil help

  • Thread starter Legendary Z
  • Start date
  • Views 313
L

Legendary Z

Banned
Messages
187
Reaction score
13
Points
70
Sin$
7
All i need to know is how to replace hex string using binary?like in hex i got this 3FF000003DF00001FFE00000 i want to replace with 8880690003760000ffE00000 how would i do this?
 
L

Legendary Z

Banned
Messages
187
Reaction score
13
Points
70
Sin$
7
Um I'm assuming no one knows how to replace hex string with binary reading /writing.
 
Amurka

Amurka

Getting There
Messages
1,617
Reaction score
349
Points
190
Sin$
0
You mean you want language specific code on how to do this?...then what language?
 
D

dschu012

Enthusiast
Frame In Gold Seasoned Veteran
Messages
757
Reaction score
380
Points
125
Sin$
0
You ask a very confusing question. Are you talking about a string of hex chars or an array of bytes in a file? I'll assume you are talking about bytes in a file since that is what is typically asked.

Also since you don't specify a language I'll assume C# since it is C# or VB most of the time here.
Assuming you already have the file open with a binary reader
Code:
reader.BaseStream.Position = offset of the 3FF000003DF00001FFE00000;
reader.Write(new byte[]{0x88,0x80,0x69,0x00,0x03,0x76,0x00,0x00,0xff,0xE0,0x00,0x00);
 
Top Bottom
Login
Register