开发者

Hex Editing in .NET

开发者 https://www.devze.com 2023-04-05 18:20 出处:网络
I want to edit a hex location (for eg.0x90F10-0x90F15) in a DLL fil开发者_如何学JAVAe. Is there any library or APIs by which I can do it in .NET?

I want to edit a hex location (for eg.0x90F10-0x90F15) in a DLL fil开发者_如何学JAVAe.

Is there any library or APIs by which I can do it in .NET?


  1. Call File.OpenWrite to get a FileStream for your file

  2. Set Stream.Position to jump to the location you want to edit

  3. Call Stream.Write to overwrite bytes in the file.


Since you don't provide much detail or source only a general pointer:

Try System.IO.File - you can read and write any byte/byte array...

0

精彩评论

暂无评论...
验证码 换一张
取 消