Warning: include(): open_basedir restriction in effect. File(/etc/passwd) is not within the allowed path(s): (/www/wwwroot/www.nanhack.com/:/tmp/) in /home/wwwroot/www.nanhack.com/payload/include/include1.php on line 39
Warning: include(/etc/passwd): failed to open stream: Operation not permitted in /home/wwwroot/www.nanhack.com/payload/include/include1.php on line 39
Warning: include(): Failed opening '../../../../../../../../../../../etc/passwd' for inclusion (include_path='.:/www/server/php/70/lib/php') in /home/wwwroot/www.nanhack.com/payload/include/include1.php on line 39
包含phpinfo文件
包含ect/passwd
(配置文件:open_basedir限制包含的路径:(/www/wwwroot/www.nanhack.com/:/tmp/) ,所以这里无法展示,但不是所有的程序都会限制的)
<?php
if(isset($_GET['page'])){
$path = $_GET['page'];
include $path;
}else{
include "home.php";
}
?>