Skip to content

Instantly share code, notes, and snippets.

@MU2324
Created February 10, 2025 20:39
Show Gist options
  • Save MU2324/47bd2ab144fe16bd9d6ba00fd9a3efa1 to your computer and use it in GitHub Desktop.
Save MU2324/47bd2ab144fe16bd9d6ba00fd9a3efa1 to your computer and use it in GitHub Desktop.
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