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