メインコンテンツにスキップ
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...