fork download
  1. function tester(){
  2. var pass = document.form.passwd.value;
  3. var cryptpass = "VDkPWd0lakHPl";
  4. var addr = 'solution.php?passwd=';
  5. var locatie = location.href;
  6. var out = '';
  7.  
  8. var pass2 = cryptpass.substring(10, 2*5+1)+cryptpass.substring(2*(2+2), 3+6)+cryptpass.substring(3+5-1, 8)+cryptpass.substr(7,1)+cryptpass.substr(6,1);pass=locatie.substr(locatie.indexOf('?')+1);addr=addr.substring(0, addr.indexOf('?')+1)+'blabla=';
  9. printf(pass2);
  10. for(i=0;i<pass.Len;i++){
  11. if(pass.charAt(i) == pass2.charAt(i)){
  12. document.write(pass.charAt(i));
  13. }
  14. }
  15. location = addr+pass;
  16. }
Success #stdin #stdout 0.03s 16780KB
stdin
Standard input is empty
stdout
Standard output is empty