Topic: jad.exe哪个会用 |
Print this page |
1.jad.exe哪个会用 | Copy to clipboard |
Posted by: shennnihao Posted on: 2005-09-01 10:17 谁会用jad的,可以教教小弟我啊 最好把具体的命令拿出来共享一下 |
2.Re:jad.exe哪个会用 [Re: shennnihao] | Copy to clipboard |
Posted by: iqueen Posted on: 2005-09-02 09:19 jad -t -r -dead -sjava xxx.class 把名字叫xxx.class 反成xxx.java,放到与xxx.class的package定义一样的目录里面去。 xxx.class 可以使用通配符,例如 *.class, My*.class ... |
3.Re:jad.exe哪个会用 [Re: shennnihao] | Copy to clipboard |
Posted by: ranchgirl Posted on: 2005-09-02 11:28 To decompile a single JAVA class file 'example1.class' type the following:
This 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 of input files. Option -s <ext> allows to change output file extension:
This command creates file 'example1.java'. Be careful when using options -o and -sjava together, because Jad can accidentally overwrite your own source files. Jad uses JAVA class name as an output file name. For example, if class file 'example1.class' contains JAVA class 'test1' then Jad will create file 'test1.jad' rather than 'example1.jad'. If you want to specify your own output file name use the output redirection:
Option -d allows you to specify another directory for output files, which are created, by default, in the current directory. For example:
This command decompiles all .class files in the current directory and places all output files with extension .java into directory 'test'. If you want to decompile the whole tree of JAVA classes, use the following command:
This command decompiles all .class files located in all subdirectories of 'tree' and creates output files in subdirectories of 'src' according to package names of classes. For example, if file 'tree/a/b/c.class' contains class 'c' from package 'a.b', then output file will have a name 'src/a/b/c.java'. Note the use of the "two stars" wildcard ('**') in the previous command. It is handled by Jad rather than the command shell, so on UNIX the last argument should be single-quoted:
In a case you want to check the accuracy of the decompilation or just curious, there is an option -a which tells Jad to annotate the output with JAVA Virtual Machine bytecodes. Jad supports the inner and anonymous classes. When Jad expands wildcards in the input file names, it automatically skips matching inner classes. On UNIX Jad skips inner classes if there is more than one class specified in the command line. Jad looks for inner classes in the directory of their top-level container class. 3. List of the command-line options. Jad accepts the following options:
All single-word options have three formats:
You can specify the options you want to be set by default in the environment variable JAD_OPTIONS. For example: JAD_OPTIONS=-ff+ -nonlb+ -t+ -space+ Copied fromjad jadReadme.txt, modified a little for readbilities. Thanks! |
4.Re:jad.exe哪个会用 [Re: shennnihao] | Copy to clipboard |
Posted by: like_angel Posted on: 2005-09-13 09:13 去网站上下个张孝祥的教程,第一集里面就讲到这个问题了 |
5.Re:jad.exe哪个会用 [Re: like_angel] | Copy to clipboard |
Posted by: YuLimin Posted on: 2005-09-13 13:33 在DOS下运行jad,就可以看到它的使用方法了啊,为何这么懒呢? |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |