Lucas
Lucas

Reputation: 3715

Editing hex of code of an application

I have recently seen few application where I can edit certain blocks of hex by giving the valid offset.

The question is, how do they do that? Are there any function which allow binary string editing in vb.net?

There is no much about that on google, so could you tell me how can I edit the application source in vb.net like in the hex editor?

Upvotes: 0

Views: 1217

Answers (1)

Elmo
Elmo

Reputation: 6471

Have a look at this:

  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.

Upvotes: 1

Related Questions