打开题目,显示的是一个链接
![](https://img.haomeiwen.com/i8520837/5fa26b915533cf6c.png)
查看源代码,也只有一个链接,点开链接,返回了 Oh on!
根据题目提示,flag 在 index 里,所以想办法读取 index.php 的源码
这时候需要用到 php 伪协议
参考表哥文章
构造 url 地址
http://123.206.87.240:8005/post/index.php?file=php://filter/read=convert.base64-encode/resource=index.php
然后进行解密,得到flag
打开题目,显示的是一个链接
查看源代码,也只有一个链接,点开链接,返回了 Oh on!
根据题目提示,flag 在 index 里,所以想办法读取 index.php 的源码
这时候需要用到 php 伪协议
参考表哥文章
构造 url 地址
http://123.206.87.240:8005/post/index.php?file=php://filter/read=convert.base64-encode/resource=index.php
然后进行解密,得到flag
本文标题:Bugku flag在index里
本文链接:https://www.haomeiwen.com/subject/ekzxsqtx.html
网友评论