问题
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