@@ -13,8 +13,11 @@ public class Main {
13
13
public static final String VERSION = "1.0" ;
14
14
public static final String TITLE = "ExploitDB 搜索工具" ;
15
15
public static final String AUTHOR = "钟智强" ;
16
+ public static final String EMAIL =
"[email protected] " ;
17
+ public static final String GITHUB = "https://github.com/ctkqiang" ;
18
+ public static final String GITCODE = "https://gitcode.com/ctkqiang_sr" ;
16
19
public static final String DESCRIPTION = "ExploitDB 搜索工具" ;
17
- public static final String USAGE = "mvn clean compile exec:java" ;
20
+ public static final String USAGE = "mvn clean compile exec:java 或 java -jar {FILENAME}.jar " ;
18
21
19
22
public static final Scanner scanner = new Scanner (System .in );
20
23
@@ -25,22 +28,24 @@ public class Main {
25
28
26
29
private static List <String > allowed = Arrays .asList ("csv" , "json" , "sql" );
27
30
28
- private static Configuration Config = new Configuration ();;
29
-
30
31
private static void PrintBanner () {
31
32
System .out .println ();
32
33
System .out .println ("╭─────────────────────────────────────────────────────────────────────────╮" );
33
- System .out .println ("│ (๑˃̵ᴗ˂̵)و 欢迎来到灵儿的安全世界呀~♡" );
34
- System .out .println ("│ " );
34
+ System .out .println ("│ (๑˃̵ᴗ˂̵)و 欢迎来到灵儿的安全世界呀~♡ (づ。◕‿‿◕。)づ " );
35
+ System .out .println ("│ " );
35
36
System .out .println ("│ 工具名称:" + TITLE + " v" + VERSION );
36
- System .out .println ("│ 作者昵称:" + AUTHOR );
37
+ System .out .println ("│ 作者昵称:" + AUTHOR + " (๑•̀ㅂ•́)و✧" );
37
38
System .out .println ("│ 简介说明:" + DESCRIPTION );
38
- System .out .println ("│ " );
39
- System .out .println ("│ 💌 声明一下哦,我可是乖乖的好孩子呢! " );
40
- System .out .println ("│ 这个工具是用来做好事的,不是用来做坏事的~ " );
41
- System .out .println ("│ 但是,如果有人坏坏地用它去做不好的事情, " );
42
- System .out .println ("│ 哥哥姐姐们可要自己负责啦,我是不背锅的小可爱哟~(๑•̀ㅂ•́)و✧ " );
43
- System .out .println ("│ 我不对任何恶意使用、违法操作产生的后果负责哟~请乖乖做正义的萌新吧!" );
39
+ System .out .println ("│ " );
40
+ System .out .println ("│ 📧 邮箱联系: " + EMAIL );
41
+ System .out .println ("│ 💻 GitHub : " + GITHUB );
42
+ System .out .println ("│ 📂 GitCode : " + GITCODE );
43
+ System .out .println ("│ " );
44
+ System .out .println ("│ 🛠️ 使用方法: " + USAGE );
45
+ System .out .println ("│ " );
46
+ System .out .println ("│ 💌 小声明哟~我是乖乖的好孩子,这工具是帮大家做好事的~ " );
47
+ System .out .println ("│ 不是让坏蛋乱用的哦 (ง •̀_•́)ง " );
48
+ System .out .println ("│ 如果有人坏坏地用了,后果自负哒~我不背锅哦~请保持正义感~♡ " );
44
49
System .out .println ("╰─────────────────────────────────────────────────────────────────────────╯" );
45
50
System .out .println ();
46
51
}
@@ -50,18 +55,35 @@ public static void main(String[] args) {
50
55
Main .PrintBanner ();
51
56
52
57
/**
53
- * 设置数据库模式 ♡
54
- * 可选值请查阅 {@link xin.ctkqiang.dto.Database Database} 枚举类 :
58
+ * 嘻嘻~这里是数据库模式设置哦 ♡
59
+ * 你可以从 {@link xin.ctkqiang.dto.Database Database} 枚举里选一个最爱滴数据库 :
55
60
* <ul>
56
- * <li>{@link xin.ctkqiang.dto.Database#MYSQL MYSQL} :标准的 MySQL 数据库</li>
57
- * <li>{@link xin.ctkqiang.dto.Database#SQLite SQLite} :轻量级嵌入式数据库</li>
61
+ * <li>{@link xin.ctkqiang.dto.Database#MYSQL MYSQL} :咱们平时用的 MySQL
62
+ * 数据库,默认就选它啦~</li>
63
+ * <li>{@link xin.ctkqiang.dto.Database#SQLITE SQLITE} :轻巧灵活的 SQLite
64
+ * 嵌入式数据库,萌萌哒!</li>
58
65
* </ul>
59
- * 如果想用 SQLite,就把这里改成 {@link xin.ctkqiang.dto.Database#SQLite Database.SQLITE}
60
- * 哦~ ✨🤭⚡️🌸🌸🌸
66
+ *
67
+ * 小提示✨:默认模式是 MYSQL 哦,要用 SQLite 的话,记得把下面的代码改成
68
+ * <code>Configuration.setDatabaseMode(Database.SQLITE);</code> 才能生效呢~
69
+ *
70
+ * 举个栗子给你看👇:
71
+ *
72
+ * 乖乖用【默认】 MySQL 嘛 ~
73
+ *
74
+ * <pre>
75
+ * Configuration.setDatabaseMode(Database.MYSQL);
76
+ * </pre>
77
+ *
78
+ * 想用 SQLite ~
79
+ *
80
+ * <pre>
81
+ * Configuration.setDatabaseMode(Database.SQLITE);
82
+ * </pre>
83
+ *
84
+ * 嘻嘻,这样就能轻轻松松切换数据库, 你棒棒啦!🎀🌸💖
61
85
*/
62
-
63
- // Main.Config.setDatabaseMode(Database.MYSQL);
64
- Main .Config .setDatabaseMode (Database .SQLITE );
86
+ Configuration .setDatabaseMode (Database .SQLITE );
65
87
66
88
int pages = userUtil .askForPositiveInt ("📄 想爬多少页咧~?【建议填个50以上更爽!】" );
67
89
boolean isExport = userUtil .askForYesNo ("💾 要不要顺便导出数据嘞?(支持 .csv/.json/.sql哦)✨:" );
0 commit comments