Created
February 10, 2025 20:39
-
-
Save MU2324/47bd2ab144fe16bd9d6ba00fd9a3efa1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function decodeBase64(str) { | |
return decodeURIComponent(escape(window.atob(str))); | |
} | |
function checkLogin(event) { | |
event.preventDefault(); | |
var username = document.getElementById('username').value; | |
var password = document.getElementById('password').value; | |
if (username === decodeBase64('YWRtaW4=') && password === decodeBase64('Y3RmMjAyNA==')) { | |
window.location.href = 'https://mu2324.github.io/CRACKIT/miscellaneous4flag.html'; | |
} else { | |
window.location.href = 'https://evil.com'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment