Rename unique first

This commit is contained in:
Adam
2015-07-27 20:12:56 -04:00
parent fda37792ff
commit 369a93be7b
4 changed files with 13 additions and 8 deletions

View File

@@ -42,6 +42,8 @@ public class Deob
long start = System.currentTimeMillis();
ClassGroup group = loadJar(args[0]);
new RenameUnique().run(group);
// remove except RuntimeException
new RuntimeExceptions().run(group);
@@ -68,8 +70,6 @@ public class Deob
new UnusedFields().run(group);
//new ModularArithmeticDeobfuscation().run(group);
new RenameUnique().run(group);
saveJar(group, args[1]);
@@ -77,6 +77,11 @@ public class Deob
System.out.println("Done in " + ((end - start) / 1000L) + "s");
}
public static boolean isObfuscated(String name)
{
return name.startsWith("method") || name.startsWith("vmethod") || name.startsWith("field") || name.startsWith("class");
}
private static ClassGroup loadJar(String jarfile) throws IOException
{
ClassGroup group = new ClassGroup();