|
|
@ -25,7 +25,7 @@ import java.lang.reflect.Modifier; |
|
|
|
import java.io.PrintStream; |
|
|
|
import java.io.PrintStream; |
|
|
|
|
|
|
|
|
|
|
|
public class Obfuscator { |
|
|
|
public class Obfuscator { |
|
|
|
public static boolean isVerbose = false; |
|
|
|
public static int verboseLevel = 0; |
|
|
|
public static boolean isDebugging = false; |
|
|
|
public static boolean isDebugging = false; |
|
|
|
|
|
|
|
|
|
|
|
public static boolean shouldStrip = true; |
|
|
|
public static boolean shouldStrip = true; |
|
|
@ -48,7 +48,8 @@ public class Obfuscator { |
|
|
|
|
|
|
|
|
|
|
|
public static void usage() { |
|
|
|
public static void usage() { |
|
|
|
err.println("usage: jode.Obfuscator flags* [class | package]*"); |
|
|
|
err.println("usage: jode.Obfuscator flags* [class | package]*"); |
|
|
|
err.println("\t[-v] "+"Verbose output"); |
|
|
|
err.println("\t[-v] "+ |
|
|
|
|
|
|
|
"Verbose output (allowed multiple times)."); |
|
|
|
err.println("\t[-debug] "+"Debugging"); |
|
|
|
err.println("\t[-debug] "+"Debugging"); |
|
|
|
err.println("\t[-nostrip] "+ |
|
|
|
err.println("\t[-nostrip] "+ |
|
|
|
"Don't strip not needed methods"); |
|
|
|
"Don't strip not needed methods"); |
|
|
@ -99,7 +100,7 @@ public class Obfuscator { |
|
|
|
|
|
|
|
|
|
|
|
for (i=0; i<params.length && params[i].startsWith("-"); i++) { |
|
|
|
for (i=0; i<params.length && params[i].startsWith("-"); i++) { |
|
|
|
if (params[i].equals("-v")) |
|
|
|
if (params[i].equals("-v")) |
|
|
|
isVerbose = true; |
|
|
|
verboseLevel++; |
|
|
|
else if (params[i].equals("-debug")) |
|
|
|
else if (params[i].equals("-debug")) |
|
|
|
isDebugging = true; |
|
|
|
isDebugging = true; |
|
|
|
else if (params[i].equals("-nostrip")) |
|
|
|
else if (params[i].equals("-nostrip")) |
|
|
|