Home > Net >  A method of how to directly modify the.net PE file of IL bytecode, don't need to recompile
A method of how to directly modify the.net PE file of IL bytecode, don't need to recompile

Time:09-18

This can be achieved by CFF explorer, but how to programmatically to modify

CodePudding user response:

Know where to be transformed into anything, just simple, such as putting a.e xe offset of 12345 bytes to 0 x88, c # code is:
(var fs=
 using the File, Open (" a.e xe ", FileMode. Open)) 
{
Fs. The Position=12345;
Fs. WriteByte (0 x88);
}


Change is very simple, value of a dollar,
Know where change, value $ten thousand,


  • Related