Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
output bug
Browse files Browse the repository at this point in the history
  • Loading branch information
4ra1n committed Jun 11, 2023
1 parent 0351f1c commit 31a0ed6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/Cli.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions fake-mysql-cli/src/main/java/me/n1ar4/fake/cli/PrintUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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=");
Expand Down

0 comments on commit 31a0ed6

Please sign in to comment.