<?php
header("content-type:text/html;charset=utf8");
highlight_file(__FILE__);
class Delete{
public $name = 'error.log';
function __destruct(){
if (file_exists($this->name)){
if(unlink($this->name))
echo $this->name . ' delete';
else{
echo "unlink error!";
}
}else{
echo 'file Path does not exist';
}
}
}
if (isset($_GET['input'])){
$obj = unserialize($_GET['input']);
}
Warning: file_exists(): open_basedir restriction in effect. File(error.log) is not within the allowed path(s): (/www/wwwroot/www.nanhack.com/:/tmp/) in /home/wwwroot/www.nanhack.com/payload/unserilization/submit/serialize2.php on line 9
file Path does not exist