Oolong是一种汇编语言,通过Oolong反编译工具,可将.class文件转为.j文件,将class文件的二进制表示的结构形式先转化成能够理解的汇编语言,以更好的认识class文件中的信息。
使用过程:
1. 下载Oolong.jar工具包,放到和.class文件相同的路径中,下载地址:
http://download.csdn.net/detail/yifansj/9787748
2. 运行cmd,
3. C:\Users\Administrator>d:
4. D:\>cd d:\Users\Administrator\Workspaces\MyEclipse 10\test\bin//进行文件夹
5. D:\Users\Administrator\Workspaces\MyEclipse 10\test\bin>java COM.sootNsmoke.oolong.Gnoloo aha2.class
此后同目录下产生一个aha2.j的文件,用记事本打开即可。
.source aha2.java .class public super aha2 .super java/lang/Object .method public <init> ()V .limit stack 1 .limit locals 1 .var 0 is this Laha2; from l0 to l5 .line 2 l0: aload_0 l1: invokespecial java/lang/Object/<init> ()V l4: return .end method .method public static main ([Ljava/lang/String;)V .limit stack 2 .limit locals 2 .var 0 is args [Ljava/lang/String; from l0 to l11 .var 1 is a I from l2 to l11 .line 9 l0: iconst_1 l1: istore_1 .line 10 l2: getstatic java/lang/System/out Ljava/io/PrintStream; l5: ldc "ahaha2" l7: invokevirtual java/io/PrintStream/println (Ljava/lang/String;)V .line 11 l10: return .end method
原文地址:https://www.cnblogs.com/yifanSJ/p/9218111.html
时间: 2024-10-19 22:07:13