Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望可以有写入或者重组PE文件的功能 #39

Open
bughoho opened this issue Sep 14, 2015 · 1 comment
Open

希望可以有写入或者重组PE文件的功能 #39

bughoho opened this issue Sep 14, 2015 · 1 comment
Assignees
Milestone

Comments

@bughoho
Copy link

bughoho commented Sep 14, 2015

我比较了一下Libpe和Pelib,libpe解析的结构比pelib要更多更详细。不过两者都只有读取没有写入文件的功能。如果方便的话,希望libpe能加入这个特性,比如我希望直接在PeFile中AddSection,或者重新生成一个新的重定位表,最后使用make()或者build()可以直接重组结构将其写入硬盘中。不过似乎您的接口并非为此设计,不知难度大吗?

Best wishes 👍 :)

@r12f
Copy link
Owner

r12f commented Sep 15, 2015

我也非常希望增加这个功能,以至于可以在代码里面看到第一个版本的接口里面就有Rebuild函数。不过我暂时把它去掉了,为了能让可以使用的接口更加直观。

现在我正在写延迟导入表的解析,完成之后就会开始写重组,然后再添加修改的功能。一开始设计的时候想尽量多的复用内存,结果导致修改PE会不太方便,不过应该可以通过类似CopyOnWrite的方式来解决。

@r12f r12f added this to the 0.3 Preview milestone Sep 15, 2015
@r12f r12f self-assigned this Sep 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants