PE file add null bytes to .text section

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-16 14:33:13

问题


I have an exe that I need to increase the size of its .text section . used LORDPE to alter the Virtual and Raw address, but having a hard time where to append the null bytes ? Do I need to reallocate every following section ?

Is there a tool for similar tasks ? following these links

tut2

tut1


回答1:


What you must do depends on how many bytes you want to add to the section and the status of the section. If you just add a few bytes and the section has a gap big enough to contain the bytes to add, then you must only change the size of the section, NOT its address. If there is no gap in the section or the gap is not large enough to host the new bytes, then you must add a new section.



来源:https://stackoverflow.com/questions/14109305/pe-file-add-null-bytes-to-text-section

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!