|
...
If you wanna Inject your Code at Runtime,yes... But..
Its very uncommon that after a Section (here Code one) comes JunkData..Prolly a new Section starts wich is needed to run the Exe proper..
You could go and check for some Space to inject Stuff after the Section Infos -> Start of first Section...
Or maybe smash your Code into 0 Bytes of the last Section (if there are any)...
You will have to set correct flags with VirtualProtect,otherwise u will prolly fail at your Attemp...
Can you explain a bit more what you wanna inject,and how do u call your injected Code etc.?
Probably easier to sort the Problem then
Cheers
|