java - 想请教一下如何做class文件破损
大家讲道理
大家讲道理 2017-04-18 10:34:21
0
2
318

有需求,要做破损项。大概就是加内部类,然后破坏内部类的 class 文件,使其反编译时连带外部类都不可见。试试找找折腾了一个下午,没得出个结果。

就是想问一下,一般都是改哪几个字节的?先谢过为敬

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
PHPzhong

It can indeed be achieved. But the probability is low, and the specific reasons are not very clear.

伊谢尔伦

Is this possible? There are standards for class bytecode. As long as the jvm knows your class, it must be decompiled.

proguard 代码混淆工具,这种呢也是可以反编译的,不过非常难读。
还有一种方式就是将class/jar文件加密,自定义ClassLoader实现在加载classDecrypt before loading.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template