forked from narumii/Deobfuscator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBootstrap.java
23 lines (21 loc) · 855 Bytes
/
Bootstrap.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.nio.file.Path;
import org.objectweb.asm.ClassWriter;
import uwu.narumi.deobfuscator.Deobfuscator;
import uwu.narumi.deobfuscator.api.context.DeobfuscatorOptions;
import uwu.narumi.deobfuscator.core.other.composed.general.ComposedGeneralFlowTransformer;
public class Bootstrap {
public static void main(String[] args) {
Deobfuscator.from(
DeobfuscatorOptions.builder()
.inputJar(Path.of("work", "obf-test.jar")) // Specify your input jar here
//.libraries(Path.of("work", "libs")) // Specify your libraries here if needed
.transformers(
// Pick your transformers here
() -> new ComposedGeneralFlowTransformer()
)
.continueOnError()
.classWriterFlags(ClassWriter.COMPUTE_FRAMES)
.build()
).start();
}
}