fork download
  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. alert(TheUsername);
  13. alert(ThePassword);
  14. if (username == TheUsername && password == ThePassword)
  15. {
  16. alert("Vous pouvez utiliser ce mot de passe pour valider ce challenge (en majuscules) / You can use this password to validate this challenge (uppercase)");
  17. }
  18. }
  19. else
  20. {
  21. alert("Nope, you're a naughty hacker.")
  22. }
  23. }
  24. }
Success #stdin #stdout 0.04s 16424KB
stdin
Standard input is empty
stdout
Standard output is empty