fork download
  1. <?php
  2. function stringxor($o1, $o2) {
  3. $res = '';
  4. for($i=0;$i<strlen($o1);$i++)
  5. $res .= chr(ord($o1[$i]) ^ ord($o2[$i]));
  6. return $res;
  7. }
  8. function stringor($o1, $o2) {
  9. $res = '';
  10. for($i=0;$i<strlen($o1);$i++)
  11. $res .= chr(ord($o1[$i]) | ord($o2[$i]));
  12. return $res;
  13. }
  14. function stringand($o1, $o2) {
  15. $res = '';
  16. for($i=0;$i<strlen($o1);$i++)
  17. $res .= chr(ord($o1[$i]) & ord($o2[$i]));
  18. return $res;
  19. }
  20.  
  21. $key = md5("admin");
  22. print stringxor($key, base64_decode("VA5QA1cCVQgPXwEAXwZVVVsHBgtfUVBaV1QEAwIFVAJWAwBRC1tRVA=="));
  23. print stringor($key, base64_decode("VA5QA1cCVQgPXwEAXwZVVVsHBgtfUVBaV1QEAwIFVAJWAwBRC1tRVA=="));
  24. print stringand($key, base64_decode("VA5QA1cCVQgPXwEAXwZVVVsHBgtfUVBaV1QEAwIFVAJWAwBRC1tRVA=="));
  25.  
Success #stdin #stdout 0.02s 25952KB
stdin
Standard input is empty
stdout
f?b0edg18>47>34bo4>2k0`?c5<33c71v?r3wfw9?577uw7>;qpwu<33gw3AAA	A@@@