diff --git a/assets/images/sheevburnt.png b/assets/images/sheevburnt.png new file mode 100644 index 0000000..e2ff9f4 Binary files /dev/null and b/assets/images/sheevburnt.png differ diff --git a/assets/js/flagChecker.js b/assets/js/flagChecker.js deleted file mode 100644 index 8a26088..0000000 --- a/assets/js/flagChecker.js +++ /dev/null @@ -1,41 +0,0 @@ -const previousFlag1 = "37f13b5cd79434ba0bb8f89a95e227f881a8a17d535f6a71ff4d221e8f7a2e62"; -const previousFlag2 = "b1fc7cae5c24f2625866f490e53b17f4e4ddb30c33d6422ff650dce5a8345253"; -const previousFlag3 = "020dd3dc162a25483a5648c8ea007dc379ed5cb922f5cc7e4d2c48b3b69cc354"; -let questionNumber = 1; - -const doubleCheck = async () => { - let locked = document.getElementById('lockDown'); - let question; - - while (true) { - if (questionNumber == 1) { - question = prompt("To continue, please enter the key for Locker1"); - if (previousFlag1 === await hashData(question.toUpperCase())) { - break; - } - } else if (questionNumber == 2) { - question = prompt("To continue, please enter the key for Locker2"); - if (previousFlag2 === await hashData(question.toUpperCase())) { - break; - } - } else if (questionNumber == 3) { - question = prompt("To continue, please enter the key for Locker3"); - if (previousFlag3 === await hashData(question.toUpperCase())) { - break; - } - } - - alert("Incorrect key. Please try again."); - } - - questionNumber = questionNumber + 1; - - if (questionNumber == 4) { - locked.classList.remove("hidden"); - return; - }; - - doubleCheck(); -}; - -doubleCheck(); \ No newline at end of file diff --git a/assets/js/script.js b/assets/js/script.js deleted file mode 100644 index 404cd31..0000000 --- a/assets/js/script.js +++ /dev/null @@ -1,36 +0,0 @@ -const flag = '487bc9db81d4eadf4b859515291d2d2ad291ebafa58f615b32de345e52a69d9f'; - -const hashData = async (data) => { - const encodedData = new TextEncoder().encode(data); - const hashBuffer = await crypto.subtle.digest("SHA-256", encodedData); - return Array.prototype.slice.call(new Uint8Array(hashBuffer)).map(b => b.toString(16).padStart(2, '0')).join(''); -}; - -let lockDown = localStorage.getItem('whetherLockDown'); -if (lockDown == undefined || lockDown == null) { - lockDown = "false"; - localStorage.setItem('whetherLockDown', lockDown); -}; - -if (lockDown === "true") { - let locked = document.getElementById('lockDown'); - let locked2 = document.getElementById('lockDown2'); - locked.innerHTML = `Website blocked`; - locked2.innerHTML = ``; -}; - -const submit = async () => { - const valueOf = document.getElementById('theText'); - const actualValue = valueOf.value; - - if (flag !== await hashData(actualValue)) { - alert("Incorrect. Now the website is locked"); - lockDown = "true"; - localStorage.setItem('whetherLockDown', lockDown); - window.location.href = atob('aHR0cHM6Ly90aW55dXJsLmNvbS9iZGRjcnZkYw=='); - return; - }; - - const body = document.getElementById('lockDown'); - body.innerHTML = "you win :)" -}; \ No newline at end of file diff --git a/assets/js/takeMeHome.js b/assets/js/takeMeHome.js deleted file mode 100644 index 46517d7..0000000 --- a/assets/js/takeMeHome.js +++ /dev/null @@ -1 +0,0 @@ -(function (_0x4d2c7d, _0x4c7abb) { var _0x3ddced = _0x5e08, _0xc2ab46 = _0x4d2c7d(); while (!![]) { try { var _0x4fc4c5 = -parseInt(_0x3ddced(0xb7)) / 0x1 + -parseInt(_0x3ddced(0xb6)) / 0x2 + parseInt(_0x3ddced(0xb4)) / 0x3 + -parseInt(_0x3ddced(0xb8)) / 0x4 + parseInt(_0x3ddced(0xaf)) / 0x5 + -parseInt(_0x3ddced(0xb3)) / 0x6 + -parseInt(_0x3ddced(0xb9)) / 0x7 * (-parseInt(_0x3ddced(0xb5)) / 0x8); if (_0x4fc4c5 === _0x4c7abb) break; else _0xc2ab46['push'](_0xc2ab46['shift']()); } catch (_0x16daa9) { _0xc2ab46['push'](_0xc2ab46['shift']()); } } }(_0x5980, 0xb4611)); function _0x5e08(_0x39cf74, _0x2a0d74) { var _0x59803d = _0x5980(); return _0x5e08 = function (_0x5e0811, _0x50f480) { _0x5e0811 = _0x5e0811 - 0xaf; var _0x2af975 = _0x59803d[_0x5e0811]; return _0x2af975; }, _0x5e08(_0x39cf74, _0x2a0d74); } function _0x5980() { var _0x4a5f71 = ['1295322WOfCcL', '1896dCAUGU', '1382308MuoGal', '862299mlsXaY', '1431596lSIbWL', '39291qXUzOd', '5272515srTLos', 'href', 'location', 'https://tinyurl.com/4rfcjum9', '998238JVMnWU']; _0x5980 = function () { return _0x4a5f71; }; return _0x5980(); } function func() { var _0x2d4343 = _0x5e08; window[_0x2d4343(0xb1)][_0x2d4343(0xb0)] = _0x2d4343(0xb2); }; \ No newline at end of file diff --git a/index.html b/index.html index 547e102..27b35fd 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,7 @@ Locker 4 + @@ -30,9 +31,15 @@

- - - + + + \ No newline at end of file