Advertisement
hamzakiller21

Get Joomla/wordpress by list IP

May 1st, 2014
1,850
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 KB | None | 0 0
  1. <?
  2. set_time_limit(0);
  3. echo"
  4. [+]======================================[+]
  5. [+]   Get Joomla/wordpress by list IP    [+]
  6. [+]            hamza killer              [+]
  7. [+]======================================[+]
  8. ";
  9. echo"
  10. # File IP server ->";
  11. $ips=trim(fgets(STDIN,1024));
  12. $d=@file_get_contents($ips);
  13. if(!$d){
  14.   echo"
  15. [-] no file found try again";
  16. exit();
  17. }
  18. $v=explode("\n",$d);
  19. $t=count($v);
  20. if($t == 0){
  21.   echo"
  22. [-] n0 ip found exiting";
  23.   exit();
  24. }
  25. echo"
  26. [+] loded $t ip \n";
  27. echo"
  28. [1] Joomla
  29. [2] wordpress
  30. # Put  her    -->";
  31. $sdr=trim(fgets(STDIN));
  32. if($sdr == 1){
  33.   $fp=fopen('joom1.txt','a+');
  34. }elseif($sdr == 2){
  35.    $fp=fopen('wp1.txt','a+');
  36.  
  37. }
  38. foreach($v as $vs){
  39. echo"
  40. # Start With  $vs \n";
  41. if($sdr == 1){
  42.  $dork = urlencode("ip:$vs index.php?option=com_");
  43.  }elseif($sdr == 2)
  44.  {
  45. $dork = urlencode("ip:$vs ?page_id=");
  46. }
  47. $pages = pages($dork);
  48. $scanaed = array();
  49. for($i=1;$i<=$pages;$i=$i+10){
  50.     $src = file_get_contents("http://www.bing.com/search?q=$dork&first=$i");
  51.     preg_match_all('/<cite>(.*?)<strong>/',$src,$matches);
  52.     $sites = $matches[1];
  53.     foreach($sites as $site){
  54.         $sitet = trim(str_replace('www.','',str_replace('/','',$site)));
  55. $site=str_ireplace("?","",$site);
  56. echo"
  57. http://$site";
  58. fwrite($fp,"ip = $vs \n \nhttp://$site\n");
  59.  }
  60. }
  61. }
  62. system('hamza.txt');
  63.  
  64. function pages($dork){
  65.     $src = file_get_contents("http://www.bing.com/search?q=$dork&go=&qs=n&sk=&filt=all&first=199&FORM=PERE3");
  66.     $ex = explode('<span class="sb_count" id="count">',$src);
  67.     $ex = explode('-',$ex['1']);
  68.     return $ex[0];
  69. }
  70. function check($url)
  71.         {
  72.           /*
  73.             by xsecurity
  74.           */
  75.                 $url=(!eregi("http://www",$url))?str_replace("http://","http://www.",$url):$url;
  76.                 $m = parse_url($url);
  77.         return "http://".$m[host]."/";
  78.     }
  79. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement