end2end.space
Recent Pastes
Login
Register
Unobfuscated JS
Language:
Javascript |
Created:
1 day ago |
By:
HUTAOSHUSBAND
A
d
m
i
n
i
s
t
r
a
t
o
r
Options:
[Raw View]
Views: 4
(async function () { console.log("[Test] Starting Sophisticated Compatibility Check..."); function heavyCalculation(base) { let result = base; result = ((result * 12.5) + (4500 / 3)) - 100; result = Math.floor(result) ^ 0xFF; return result; } class SecretVault { constructor(secret) { this._secret = secret; this.accessCount = 0; } getSecret(key) { this.accessCount++; if (key === "admin_key_123") { return this._secret; } else { return "ACCESS DENIED"; } } } const delay = (ms) => new Promise(res => setTimeout(res, ms)); async function asyncCheck() { console.log("[Test] Running Async Checks..."); const start = performance.now(); await delay(200); const end = performance.now(); const duration = end - start; if (duration >= 190 && duration < 1000) { return true; } console.log("[Test] Async Warning: Timer drift detected: " + duration + "ms"); return false; } const calcResult = heavyCalculation(100); console.log(`[Test] Math Result: ${calcResult}`); const vault = new SecretVault("SuperSensitiveData"); const secret = vault.getSecret("admin_key_123"); console.log(`[Test] Vault Secret: ${secret}`); console.log(`[Test] Access Count: ${vault.accessCount}`); const timingOk = await asyncCheck(); console.log(`[Test] Async Timing Valid: ${timingOk}`); if (typeof document !== 'undefined') { const div = document.createElement('div'); div.id = "integrity-check"; div.innerText = "Protected Content"; document.body.appendChild(div); const check = document.getElementById('integrity-check'); console.log(`[Test] DOM Element Created: ${check !== null}`); } else { console.log("[Test] DOM Skipped (Node.js env)"); } console.log("[Test] Suite Completed."); if (typeof process !== 'undefined' && process.exit) { process.exit(0); } })();