首页 > 代码库 > java 反编译 android 反编译
java 反编译 android 反编译
1. jad
http://varaneckas.com/jad/jad158e.linux.intel.zip 下载jad,
给jad运行权限 ,运行
chmod a+x ./jad./jad
缺点:不能反编译混淆过的,有很多文件反编译不成功
2. ded
http://siis.cse.psu.edu/ded/installation.html
3. jd-gui
都知道这个,直接反编译成java文件,但是没有命令行
4. jd-cmd
https://github.com/kwart/jd-cmd
其中需要安装maven:http://maven.apache.org/download.cgi
linux安装maven:
Extract the distribution archive, i.e. apache-maven-3.2.3-bin.tar.gz to the directory you wish to install Maven 3.2.3. These instructions assume you chose /usr/local/apache-maven. The subdirectory apache-maven-3.2.3 will be created from the archive.In a command terminal, add the M2_HOME environment variable, e.g. export M2_HOME=/usr/local/apache-maven/apache-maven-3.2.3.Add the M2 environment variable, e.g. export M2=$M2_HOME/bin.Optional: Add the MAVEN_OPTS environment variable to specify JVM properties, e.g. export MAVEN_OPTS="-Xms256m -Xmx512m". This environment variable can be used to supply extra options to Maven.Add M2 environment variable to your path, e.g. export PATH=$M2:$PATH.Make sure that JAVA_HOME is set to the location of your JDK, e.g. export JAVA_HOME=/usr/java/jdk1.7.0_51 and that $JAVA_HOME/bin is in your PATH environment variable.Run mvn --version to verify that it is correctly installed.
jd-cmd的使用:
程序本身给了3个例子:
Examples:$ java -jar jd-cli.jar HelloWorld.classShows decompiled class on a screen$ java -jar jd-cli.jar --skipResources -n -g ALL app.jarDecompiles app.jar to app.src.jar; It doesn‘t copy resources to the output jar,the decompiled classes contain line numbers as comments and the jd-cli printsthe most verbose debug information about decompilation$ java -jar jd-cli.jar myapp.jar -od decompiled -ocDecompiles content of myapp.jar to directory named ‘decompiled‘ and also on ascreen
但是我执行第三个总是提示
19:47:27.494 WARN jd.core.output.DirOutput - Class name or java source is null
所以如果要反编译class文件,用第一个,要反编译jar中的所有文件,用第二个
5. jeb
商业版,据说功能很强大,有命令行和图形,但是收费,执行速度慢,耗内存
http://www.kanxue.com/bbs/showthread.php?p=1300282
使用:
java -Xmx1430m -jar jeb.jar --automation --script=JEBDecompileAll.py classes.dex启动命令-Xmx 参数是指定java虚拟机进程内存上限的JEBDecompileAll.py 这个Python脚本里调用了jeb的api,反编译了所有的class文件
java 反编译 android 反编译
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。