PE文件添加空字节到.text段 [英] PE file add null bytes to .text section

查看:567
本文介绍了PE文件添加空字节到.text段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个exe文件,我需要增加其.text段的大小。
二手LORDPE改变虚拟和原地址,但有一个困难时期,其中追加的空字节?我是否需要重新分配所有的以下部分?

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

推荐答案

你必须做什么取决于你想要多少字节添加到部分和部分的状态。如果你只需要添加几个字节和部分有大到足以包含字节的间隙增加,那么你只能改变部分的大小,而不是它的地址。如果在节中没有间隙或空隙不够大,以承载新的字节,则必须添加一个新的部分。

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.

这篇关于PE文件添加空字节到.text段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆