关于windows pe file

FredLiu 2003-10-18 12:07:56
各位高手,请问:
我在一个 pe可执行文件后面加一个空的 section, 为什么该文件就不可执行了?
是不是pe文件里面不允许有不用但是空占地方的section 阿?

分不够再加。

(保证最后这个section是按照格式加的:对齐,加个section table,修改optional header 里面的相关项的值,这些都作了)
...全文
38 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
FredLiu 2003-10-20
  • 打赏
  • 举报
回复
问题解决了^_^!!
我犯了一个低级错误,optional header 里面的sizeofimage设错了~~~
现在没问题了~
感谢以上两位~~
结贴
FredLiu 2003-10-20
  • 打赏
  • 举报
回复
多谢,
希望更多人能来瞧瞧~~
flyelf 2003-10-20
  • 打赏
  • 举报
回复
ding
mfc168 2003-10-20
  • 打赏
  • 举报
回复
我有几篇关于PE文件结构和格式的文档,因为我对这个比较感兴趣,是在网上找到的,具体在哪里下的,我忘记了,你如果感兴趣,把你邮箱发给我(短信),我把相关文档发给你,希望对你有帮助
FredLiu 2003-10-20
  • 打赏
  • 举报
回复
两天了都没一个人瞧???
可怜啊:~(
java反编译工具jad 1.5.8g支持 jdk1.5,jdk1.6。说明很多记住一个万能的命令基本就够用了。jad -sjava -r -8 -o **\*.class ---------------This is README file for Jad - the fast Java Decompiler.Jad home page: http://www.kpdus.com/jad.htmlCopyright 2001 Pavel Kouznetsov (jad@kpdus.com).0. Please read the disclaimer on the Jad home page.1. Installation.Unzip jad.zip file into any appropriate directory on your hard drive.This will create two files: - an executable file named 'jad.exe' (Windows *) or 'jad' (*n*x) - this README fileNo other setup is required.2. How to use JadTo decompile a single JAVA class file 'example1.class' type the following: jad example1.classThis command creates file 'example1.jad' in the current directory.If such file already exists Jad asks whether you want to overwrite it or not.Option -o permits overwriting without a confirmation.You can omit .class extension and/or use wildcards in the names ofinput files.Option -s allows to change output file extension: jad -sjava example1.classThis command creates file 'example1.java'. Be careful when usingoptions -o and -sjava together, because Jad can accidentally overwriteyour own source files.Jad uses JAVA class name as an output file name. For example, if classfile 'example1.class' contains JAVA class 'test1' then Jad will createfile 'test1.jad' rather than 'example1.jad'. If you want to specifyyour own output file name use the output redirection: jad -p example1.class > myexm1.javaOption -d allows you to specify another directory for output files,which are created, by default, in the current directory. For example: jad -o -dtest -sjava *.class (or jad -o -d test -s java *.class, which has the same effect)This command decompiles all .class files in the current directory <

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧