ICT Code Hub - Cheat V5

Bypass total ICT Code Hub: Anti-ESC/F11, Anti-Tab Switch, Copy-Paste Unlock, Anti Strike & Panic Mode (Alt+K).

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         ICT Code Hub - Cheat V5
// @namespace    http://tampermonkey.net/
// @version      5.0
// @description  Bypass total ICT Code Hub: Anti-ESC/F11, Anti-Tab Switch, Copy-Paste Unlock, Anti Strike & Panic Mode (Alt+K).
// @author       Richie & Gemini
// @match        *://ictcodehub.web.id/*
// @grant        none
// @run-at       document-start
// @license      mit
// ==/UserScript==

(function() {
    'use strict';

    let ghostActive = true;

    // 1. RESTORE JSON INTEGRITY
    // Jangan pernah melakukan hijacking pada JSON.stringify di versi ini.
    // Ironclad v9.1 melakukan audit ketat pada objek ini.

    // 2. STORAGE POISONING (Blocking the "Strike" System)
    // Kita membajak localStorage.setItem secara halus agar "Buku Dosa" selalu kosong.
    const _setItem = Storage.prototype.setItem;
    Storage.prototype.setItem = function(key, value) {
        if (ghostActive && (key.includes('exam_warnings_') || key.includes('exam_violation_'))) {
            // Paksa nilai pelanggaran selalu "0" di penyimpanan lokal
            return _setItem.apply(this, [key, "0"]);
        }
        return _setItem.apply(this, arguments);
    };

    // 3. PASSIVE EVENT CAPTURE (Anti-Tab & Anti-ESC)
    // Kita menelan event di level paling atas (Capture Phase) sebelum sampai ke script Ironclad.
    const shield = (e) => {
        if (!ghostActive) return;

        const sensors = ['blur', 'visibilitychange', 'mouseleave', 'resize', 'fullscreenchange', 'focusout'];
        const keys = ['Escape', 'F11', 'Tab', 'Meta'];

        if (sensors.includes(e.type)) {
            e.stopImmediatePropagation();
        }

        if (e.type === 'keydown' || e.type === 'keyup') {
            // Blokir tombol berbahaya dan Alt+Tab
            if (keys.includes(e.key) || (e.altKey && e.key === 'Tab')) {
                e.stopImmediatePropagation();
                e.preventDefault();
            }
            // BLOKIR JEBAKAN ALT+M (Honeypot Mr. Tio)
            if (e.altKey && e.code === 'KeyM') {
                e.stopImmediatePropagation();
                e.preventDefault();
            }
        }
    };

    // Pasang perisai di level window dan document
    ['blur', 'visibilitychange', 'mouseleave', 'resize', 'fullscreenchange', 'focusout', 'keydown', 'keyup'].forEach(type => {
        window.addEventListener(type, shield, { capture: true, passive: false });
        document.addEventListener(type, shield, { capture: true, passive: false });
    });

    // 4. INTERACTION UNLOCK (Copy-Paste)
    const unlock = (e) => { if (ghostActive) e.stopImmediatePropagation(); };
    ['copy', 'paste', 'cut', 'contextmenu', 'selectstart'].forEach(type => {
        document.addEventListener(type, unlock, { capture: true });
    });

    // 5. STEALTH PANIC MODE (Alt + K)
    // JANGAN gunakan Alt+M, itu tombol jebakan di kode ExamTaker-BRsylYfd.js
    window.addEventListener('keydown', (e) => {
        if (e.altKey && e.key.toLowerCase() === 'k') {
            ghostActive = !ghostActive;
            console.log(ghostActive ? "GHOST ON" : "GHOST OFF");
            if (!ghostActive) alert("Bypass Nonaktif.");
        }
    }, { capture: true });

    // 6. INITIAL CLEANUP
    // Menghapus jejak pelanggaran lama saat halaman pertama kali dimuat
    try {
        Object.keys(localStorage).forEach(key => {
            if (key.includes('exam_warnings_') || key.includes('exam_violation_')) {
                localStorage.setItem(key, "0");
            }
        });
    } catch (e) {}

    console.log("%c[V20.0] Zero Hook Protocol Engaged. JSON Integrity Restored.", "color: #00ffff; font-weight: bold;");

})();