-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
25 lines (20 loc) · 749 Bytes
/
Copy pathMain.java
File metadata and controls
25 lines (20 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.io.File;
public class Main {
public static void main(String[] args) throws Exception {
if (args.length != 2) {
System.err.println("Usage: java -jar allatori-deobfuscator.jar <input-jar> <output-jar>");
System.exit(1);
}
File src = new File(args[0]);
File dest = new File(args[1]);
if (!src.exists()) {
System.err.println("Error: Input file does not exist: " + src.getAbsolutePath());
System.exit(1);
}
File parentDir = dest.getAbsoluteFile().getParentFile();
if (parentDir != null && !parentDir.exists()) {
parentDir.mkdirs();
}
JarDeobfuscatorEngine.processAndDumpJar(src, dest);
}
}