我正在写一个python程序来修改PE文件的编译时间。根据我的研究,编译时间存储在TimeDateStamp字段下的文件头中。但是,我只设法找到读取TimeDateStamp值的方法。在
例如
import pe
filename = "C:/Users/User/Desktop/test.exe"
pe = pefile.PE(filename)
print("TimeDateStamp: "+hex(pe.FILE_HEADER.TimeDateStamp))
如何编辑PE文件头中的TimeDateStamp字段?在
Tags:
我已经找到了修改PE文件头中的timedatestamp字段的方法,方法是稍微修改getPETimeStamp.py created by @geudrik中的代码。在
Python 3
使用上面的代码,timeDateStamp字段将更改为5c4570dd
pefile支持更新原始文件,此文件不需要处理NT头偏移:
而且,你的代码对我也不管用。在
相关问题 更多 >
编程相关推荐