Jump to content
usera

Directly change Binary file

Recommended Posts

usera

Greeting,

I want to directly change the binary file "Binary.dll": offset 100H, change to 00H and offset 200H change to 90H five times.

how to code that?

thanks

 

 

Share this post


Link to post
Share on other sites
Danyfirex

You could do this.

 

Func FileChangeOffset($File,$Offset,$Byte)
local $hFile=FileOpen($File,1)
FileSetPos($hFile,$Offset,0)
FileWrite($hFile,chr($Byte))
FileClose($hFile)
EndFunc

 

 

Saludos

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×