开发者

Modifying .rdata unicode strings from windows PE files

开发者 https://www.devze.com 2022-12-23 06:04 出处:网络
I have been looking for a way of modifying static strings stored in Windows .exe files in the .rdata section, however I haven\'t found a real way to do so yet.

I have been looking for a way of modifying static strings stored in Windows .exe files in the .rdata section, however I haven't found a real way to do so yet.

  • The whole thing is too complicated to do by hand (in this case by a HEX editor) and so I wanted to know if you 开发者_运维百科have a solution to do so.


What is complicated about doing it in a hex editor? One 'gotcha' that might be tripping you up is that you have to maintain each string's original length. You can do so with spaces at the end or (sometimes) by null-terminating it early, depending on how it's accessed in the executable.

If you really want to get tricky, you can try finding every cross reference to said string in the code and modify the length parameter passed to functions that use it.

0

精彩评论

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

关注公众号