开发者

changing bin code a bit

开发者 https://www.devze.com 2022-12-25 08:22 出处:网络
If in exe (written in c++) file in .text sectionI\'ll add instruction like push eax; pop eax; I mean somethin开发者_JAVA技巧g what won\'t change anything. Will this program work properly or everything

If in exe (written in c++) file in .text section I'll add instruction like push eax; pop eax; I mean somethin开发者_JAVA技巧g what won't change anything. Will this program work properly or everything would get crashed ?


It will probably cause problems if you insert it at a random location in the code, as it will displace other code addresses after it. If you append it to the end you'll probably be OK, unless the code has internal checks for tampering (CRC, digital signature, length check, etc).


I guess it depends how you add these instructions. If you insert them in the file you risk breaking offsets in both the code and its executable container

0

精彩评论

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