File tree Expand file tree Collapse file tree 2 files changed +52
-30
lines changed
Expand file tree Collapse file tree 2 files changed +52
-30
lines changed Original file line number Diff line number Diff line change 1111| [ 验证码相关漏洞] | 🌟🌟 |
1212
1313
14- ### 使用说明
14+ ### Docker启动
1515
1616``` git
1717git clone https://github.com/tangxiaofeng7/SecExample.git
@@ -21,7 +21,50 @@ docker-compose up -d
2121
2222然后访问:http://localhost:8080
2323
24-
24+
25+
26+ ### 本地调试
27+
28+ ##### 下载源码:
29+ ``` git
30+ git clone https://github.com/tangxiaofeng7/SecExample.git
31+ ```
32+ ##### 使用idea导入
33+
34+ ##### 编辑 src/main/resources/application.yml 的数据库配置
35+ ```
36+ # url: jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC&useSSL=false
37+ url: jdbc:mysql://mysql-db:3306/mybatis?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
38+ ```
39+ 修改为
40+ ```
41+ url: jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC&useSSL=false
42+ # url: jdbc:mysql://mysql-db:3306/mybatis?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
43+ ```
44+ ##### 本地启动mysql数据库
45+ 启动数据库:
46+ ```
47+ mysql.server start
48+ ```
49+ 进入 mysql终端:
50+ ```
51+ mysql -u root -p
52+ ```
53+ 导入sql文件:
54+ ```
55+ source /xx/SecExample/mysql/init.sql(绝对路径)
56+ ```
57+
58+ ##### 下载pom依赖
59+ ```
60+ 右键pom.xml =》 maven => 重新加载项目
61+ ```
62+ ##### 运行项目
63+ ```
64+ 运行 SecexampleApplication
65+ ```
66+
67+
2568### 靶场展示
2669
2770#### 首页
You can’t perform that action at this time.
0 commit comments