跳转到主要内容
eLearner.app
JS CODE CRACKER

JS Code Cracker

查找安全漏洞并在隔离的 JavaScript 沙箱中运行漏洞利用程序。

Security Level 1

第一个安全系统需要通过私有范围生成受保护的密钥。实现返回另一个函数的“createSecureCounter”函数。此内部函数必须在每次调用时递增一个私有计数器变量并返回当前计数。当计数器恰好达到 42 时,它必须返回解锁字符串“JS-SECRET-KEY”。

Sandbox Status

LOCK 1
LOCK 2
LOCK 3
Complete each level to perform the final sandbox exploit.

Stuck?

Learn the fundamental concepts in the JavaScript course to solve this challenge.

JavaScript Sandbox Console

Write and execute JavaScript code locally in your browser.

正在加载编辑器...
Loading JS isolated execution environment...