Jbuilder生成的可执行文件怎么反编译呢?

xuqiang76 2005-01-31 09:59:14
Jbuilder生成的可执行文件怎么反编译呢?
...全文
235 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
johnnywin 2005-05-17
  • 打赏
  • 举报
回复
up……
想进Java 大门
dj0517 2005-04-15
  • 打赏
  • 举报
回复
路过,学习
YuLimin 2005-04-13
  • 打赏
  • 举报
回复
JAD应当是鼻祖吧:)
zyren06 2005-04-12
  • 打赏
  • 举报
回复
有一个可用的工具,下载一个MOCHA.ZIP试试看,将此包拷贝到jdk的bin目录下,然后再set classpath:..\jdk\bin\mocha.zip;..\myclasspaht
也就是设置mocha.zip和你要反编译的类的路径了!其实对于你的类,你可以直接指定路径!
使用命令:
java mocha.Decompiler [-v] [-o] Class1.class Class2.class ...
"java" 调用Java虚拟机
"mocha.Decompiler" 指示要进行JAVA反编译
"-v" 选择详细输出
"-o" 选写入已有的.mocha 文件
"ClassX.class" 指出要反编译类名
注意,不需给出输出的JAVA文件名,因为MOCHA自动产生一个与CLASS同名但扩展名为MOCHA的JAVA源文件。
对于上例,可用命令:
java mocha.Decompiler [-v] [-o] hello_java.class
得到的源文件:
YuLimin 2005-03-15
  • 打赏
  • 举报
回复
编号: 469 发送者 ProgrammerPro 发送时间 2005-3-15 14:04:37 删除 回复
内容 你好,我在这个帖子里看到你对java反编译的看法。
http://community.csdn.net/Expert/topic/3765/3765032.xml

既然java这么容易就被反编译了。
那么,那些不开源的项目是怎样"保护"它们的源代码呢。

就比如说weblogic吧,用户安装weblogic,
把他的jar解压,然后反编译解压出来的class,
这样,似乎weblogic就没有什么保密可言。


那些不开源的项目是怎样"保护"它们的源代码呢。
------------------------------------------------
请不惜赐教!谢谢!

====================
反编译,反反编译:)
miaoliujun 2005-03-11
  • 打赏
  • 举报
回复
那不一样的,司令的是对的
loveboylxy 2005-03-08
  • 打赏
  • 举报
回复
其实jbuilder就可以反编译。但看jbuilder生成的代码不行的。我试过。我用jbuilder做了一个东西。生成jar文件。再把jar文件解压。用jubilder打开,可以看见代码,只有一些变量声明了,但不是以前的代码了。
YuLimin 2005-03-08
  • 打赏
  • 举报
回复
楼主是不是还在反编译的圈套中呢???不见回音了哪。。。
YuLimin 2005-02-27
  • 打赏
  • 举报
回复
从这里下载软件
http://Java.EchoChina.net

使用方法如下:
Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov (kpdus@softhome.net).
Usage: jad [option(s)] <filename(s)>
Options: -a - generate JVM instructions as comments (annotate)
-af - output fully qualified names when annotating
-b - generate redundant braces (braces)
-clear - clear all prefixes, including the default ones
-d <dir> - directory for output files
-dead - try to decompile dead parts of code (if there are any)
-dis - disassembler only (disassembler)
-f - generate fully qualified names (fullnames)
-ff - output fields before methods (fieldsfirst)
-i - print default initializers for fields (definits)
-l<num> - split strings into pieces of max <num> chars (splitstr)
-lnc - output original line numbers as comments (lnc)
-lradix<num>- display long integers using the specified radix
-nl - split strings on newline characters (splitstr)
-noconv - don't convert Java identifiers into valid ones (noconv)
-nocast - don't generate auxiliary casts
-noclass - don't convert .class operators
-nocode - don't generate the source code for methods
-noctor - suppress the empty constructors
-nodos - turn off check for class files written in DOS mode
-nofd - don't disambiguate fields with the same names (nofldis)
-noinner - turn off the support of inner classes
-nolvt - ignore Local Variable Table entries (nolvt)
-nonlb - don't insert a newline before opening brace (nonlb)
-o - overwrite output files without confirmation
-p - send all output to STDOUT (for piping)
-pa <pfx>- prefix for all packages in generated source files
-pc <pfx>- prefix for classes with numerical names (default: _cls)
-pe <pfx>- prefix for unused exception names (default: _ex)
-pf <pfx>- prefix for fields with numerical names (default: _fld)
-pi<num> - pack imports into one line using .* (packimports)
-pl <pfx>- prefix for locals with numerical names (default: _lcl)
-pm <pfx>- prefix for methods with numerical names (default: _mth)
-pp <pfx>- prefix for method parms with numerical names (default:_prm)
-pv<num> - pack fields with the same types into one line (packfields)
-r - restore package directory structure
-radix<num>- display integers using the specified radix (8, 10, or 16)
-s <ext> - output file extension (default: .jad)
-safe - generate additional casts to disambiguate methods/fields
-space - output space between keyword (if, while, etc) and expression

-stat - show the total number of processed classes/methods/fields
-t<num> - use <num> spaces for indentation (default: 4)
-t - use tabs instead of spaces for indentation
-v - show method names while decompiling
-8 - convert Unicode strings into ANSI strings (ansi)
-& - redirect STDERR to STDOUT
SEASKYLONG 2005-02-26
  • 打赏
  • 举报
回复
有一个叫DJ Java Decompiler 的软件可以反编CLASS文件!!!
congbailing_914 2005-02-26
  • 打赏
  • 举报
回复
回复人: YuLimin(阿敏总司令:人,是要靠自己的!简单就是美!) ( ) 信誉:595



请问你,编译生成的.class文件,怎样才能反编译啊???
你可以将步骤说的详细点吗??
谢谢了啊!
congbailing_914 2005-02-26
  • 打赏
  • 举报
回复
哈哈 高手!学习!
dlab 2005-02-24
  • 打赏
  • 举报
回复
樓上正解
GJA106 2005-01-31
  • 打赏
  • 举报
回复
比较难。
反编译不过来,如果可以其它的exe也可以了。
YuLimin 2005-01-31
  • 打赏
  • 举报
回复
很简单,把.exe文件改名为.rar文件,然后打开改名后的.rar文件

如果没有进行混淆的话,那里面的class用jad反编译一下就可以了。。。

呵呵。。。

50,528

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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