diff --git a/fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/Cli.java b/fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/Cli.java index 60cfce9..c81dcff 100644 --- a/fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/Cli.java +++ b/fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/Cli.java @@ -10,6 +10,7 @@ public class Cli { public static void main(String[] args) { Cli main = new Cli(); + System.setProperty("sun.stdout.encoding", "utf-8"); JCommander.newBuilder() .addObject(main) .build() @@ -19,7 +20,7 @@ public static void main(String[] args) { } private void run() { - if(port == 0) { + if (port == 0) { port = 3308; } MySQLServer.setIp("0.0.0.0"); diff --git a/fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/PrintUtil.java b/fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/PrintUtil.java index 72c6814..ff5615b 100644 --- a/fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/PrintUtil.java +++ b/fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/PrintUtil.java @@ -17,11 +17,13 @@ public static void print(){ System.out.println("\tGadget: CB|CC31|CC44|ROME|7U21|8U20|C3P0|URLDNS"); System.out.println("\t\tExample 1: deser_CB_calc.exe"); System.out.println("\t\tExample 2: deser_URLDNS_http://your-dns-log"); + System.out.println(); System.out.println("Read file user: fileread_[name]"); System.out.println("\t\tExample 1: fileread_/etc/passwd"); System.out.println("\t\tExample 2: fileread_C:\\Program Files\\src.zip"); + System.out.println(); System.out.println("Support raw string and base64 (start with base64)"); System.out.println("\t\tExample 1: user=deser_CB_calc.exe"); System.out.println("\t\tExample 2: user=base64ZGVzZXJfQ0JfY2FsYy5leGU=");