Public paste
fds
By: dsf | Date: Jan 3 2008 09:44 | Format: PHP | Expires: never | Size: 1.14 KB | Hits: 1191

  1. <?PHP
  2. $hash = "098f6bcd4621d373cade4e832627b4f6";
  3.  
  4.  
  5. // functions
  6.  
  7. function input_match($source, $num, $preg, $preg1)
  8. {
  9. $parts = explode($preg, $source);
  10. $parts = explode($preg1, $parts[$num]);
  11. $var = $parts[0];
  12. return $parts[0];
  13. }
  14.  
  15. function post($site, $data)
  16. {
  17. $ch = curl_init();
  18. curl_setopt($ch, CURLOPT_URL,$site);
  19. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
  20. curl_setopt($ch, CURLOPT_POST, 1);
  21. curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  22. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  23. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  24. curl_setopt($ch, CURLOPT_REFERER, $site);
  25. $result = curl_exec ($ch);
  26. return $result;
  27. }
  28. function MD5_Milw0rm($hash)
  29. {
  30. $input = post("http://milw0rm.com/md5/search.php", "hash=$hash&Submit=submit");
  31. $output = input_match($input, 2, "width=90>", "</TD>") or $output = "Failed to Find";
  32. return $output;
  33. }
  34.  
  35. function MD5_Passru($hash)
  36. {
  37. $input = post("http://passcracking.ru/index.php", "admin=false&admin2=77.php&datafromuser=$hash&sub mit=submit");
  38. $output = input_match($input, 1, "#FF0000>" ,"</td>")or $output = "Failed to Find";
  39. return $output;
  40. }
  41. ?>