fork download
  1. function checkPass()
  2. {
  3. var p1 = "bewareoftheenigmagroupunderground";
  4. var p2 = "betterofftohacktherealownersboxes";
  5. var p3 = "wassaidbyadudepseudodpsychomarine";
  6.  
  7. var confirmPass = document.login.password.value;
  8.  
  9. var chk0 = 0;
  10. var pass = "";
  11. var base = "";
  12.  
  13.  
  14. for ( a = 0; a < p1.length; ++a )
  15. {
  16. var blah = confirmPass.substring ( chk0, chk0 + 1 );
  17. var chk1 = p1.substring ( a, a + 1 );
  18. var chk2 = p2.substring ( a, a + 1 );
  19. var chk3 = p3.substring ( a, a + 1 );
  20.  
  21. if ( chk1 == chk3 ) { if ( chk1 == blah) { base = base + chk1; } else { break; } chk0++; }
  22. if ( chk2 == chk1 ) { if ( chk2 == blah) { base = base + chk2; } else { break; } chk0++; }
  23. if ( chk3 == chk2 ) { if ( chk3 == blah) { base = base + chk3; } else { break; } chk0++; }
  24. ( p1.length == a + 1 ) ? pass = base : false;
  25. }
  26.  
  27. ( confirmPass != '' && confirmPass == pass ) ? window.location.href=pass+".php" : alert( "Wrong! Please try again." );
  28.  
  29. }
  30. </script>
  31.  
  32. <br /><br /><br />
  33.  
  34. <center>
  35.  
  36. <form name="login" id="login" action="" method="post" >
  37. Password:
  38. <input id="password" type="password" name="password" value="" size="30" maxlength="30" />
  39.  
  40. <input type="button" name="submit" value="Click to Login" id="submit" onclick="checkPass()"/>
  41. </form>
  42.  
Runtime error #stdin #stdout 0.27s 213248KB
stdin
Standard input is empty
stdout
Standard output is empty