Guest User

Untitled

a guest
Apr 20th, 2018
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function connexion(){
  2.     var username = prompt("Username :", "");
  3.     var password = prompt("Password :", "");
  4.     var TheLists = ["GOD:HIDDEN"];
  5.     for (i = 0; i < TheLists.length; i++)
  6.     {
  7.         if (TheLists[i].indexOf(username) == 0)
  8.         {
  9.             var TheSplit = TheLists[i].split(":");
  10.             var TheUsername = TheSplit[0];
  11.             var ThePassword = TheSplit[1];
  12.             if (username == TheUsername && password == ThePassword)
  13.             {
  14.                 alert("Vous pouvez utiliser ce mot de passe pour valider ce challenge (en majuscules) / You can use this password to validate this challenge (uppercase)");
  15.             }
  16.         }
  17.         else
  18.         {
  19.             alert("Nope, you're a naughty hacker.")
  20.         }
  21.     }
  22. }
Add Comment
Please, Sign In to add comment