java反编译工具
jd-gui是什么:
JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.
它是一个可以用来反编译java工程的工具。
jd-gui下载地址:http://jd.benow.ca/
运行jd-gui.exe,只需把要反编译的 .jar文件 拖入到jd-gui.exe中即可。比如我们反编译一下YSDK的 .jar文件:
我们会看到一些类名、变量名变成了a、b、c等等,是因为java代码做了混淆
如果是想要反编译classes.dex,则需要用dex2jar工具
dex2jar工具下载地址:https://sourceforge.net/projects/dex2jar/
1 把dex文件从apk解压出来,得到classes.dex
2 然后用dex2jar把dex文件转换成jar文件: dex2jar.bat classes.dex
3 再把生成的classes.jar文件放到JD-GUI中即可