Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function connexion(){
- var username = prompt("Username :", "");
- var password = prompt("Password :", "");
- var TheLists = ["GOD:HIDDEN"];
- for (i = 0; i < TheLists.length; i++)
- {
- if (TheLists[i].indexOf(username) == 0)
- {
- var TheSplit = TheLists[i].split(":");
- var TheUsername = TheSplit[0];
- var ThePassword = TheSplit[1];
- if (username == TheUsername && password == ThePassword)
- {
- alert("Vous pouvez utiliser ce mot de passe pour valider ce challenge (en majuscules) / You can use this password to validate this challenge (uppercase)");
- }
- }
- else
- {
- alert("Nope, you're a naughty hacker.")
- }
- }
- }
Add Comment
Please, Sign In to add comment