A deobfuscator for java
If you are looking for v1 version of Diobfuscator, you can find it here
If you want to use this deobfuscator, you need to start it from your IDE manually.
Important: You need TWO different Java installations:
- Java 17 - Required for the project to compile and run
- Java 8 - Required for the sandbox (SSVM) to work properly
- Clone this repository and open it in IntelliJ
- Make sure that you have selected Java 17 in
Project Structure
->SDK
- Install Java 8 if you don't have it already
- Place your obfuscated jar inside the root project directory. For example in
work/obf-test.jar
- Navigate to class
Bootstrap.java
- In this class edit the deobfuscator configuration
inputJar
- Your obfuscated jar file that you placed in step 4transformers
- Pick transformers that you want to run. You can find them indeobfuscator-transformers
module.
- Run this class manually from your IDE. You can use our pre-configured IntelliJ task named
Bootstrap
.
Contributions are welcome! See CONTRIBUTING.md for a project introduction and some basics about java bytecode.
Q: Sandbox doesn't work / "rt.jar is required for sandbox to run" error
A: The sandbox requires rt.jar from Java 8 installation. The deobfuscator will try to auto-detect it, but if it fails:
- Make sure you have Java 8 installed
- You can manually set it via system property:
-DrtJarPath="path/to/rt.jar"
- Or specify it in your Bootstrap configuration:
.rtJarPath(Path.of("path/to/rt.jar"))
- Common rt.jar locations (may vary based on installation):
- Oracle JDK 8:
C:/Program Files/Java/jdk1.8.0_202/jre/lib/rt.jar
- Eclipse Adoptium JDK 8:
C:/Program Files/Eclipse Adoptium/jdk-8.0.462.8-hotspot/jre/lib/rt.jar
- Oracle JDK 8: