search("ip:".$_GET['ip']." /page_id=",0); foreach($wp_sites as $wp){ if(eregi('page_id',$wp)){ $cs[]=wp($wp); } } if(count($cs) == 0){ echo "Nothing Found !"; die(); } $all_clean_wp = array_unique($cs); echo " "; echo "
\n\n";عدد المواقع ".count($all_clean_wp)." "; echo " ";
foreach($all_clean_wp as $swp){
echo "$swp";
}
echo "
}
# Class & Funcs ..
function wp($site){ preg_match_all("#(.*?)?page_id#",$site,$res); return str_replace("?","",$res[1][0]); }
function wp_get_user($wp){
$source = @implode(@file($wp.'wp-settings.php'));
if($source){ preg_match_all("#/home/(.*?)/public_html/#",$source,$res); }
if($res[1][0]){ return $res[1][0];}else{ return ""; }
}
class ss_bing{
public function search($wht,$url_mode){ // $wht = > search , $url_mode=1 => clean url (http://site.tld/) $url_mode=0 => not clean (http://site.tdl/page=google)
$wht = str_replace(" ","+",$wht);
$npages = 50000;
$npage = 1;
$allLinks = array();
while($npage <= $npages) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.bing.com/search?q='.$wht.'&first='.$npage); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_REFERER, 'http://www.bing.com/'); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8'); $result['EXE'] = curl_exec($ch); $result['ERR'] = curl_error($ch); curl_close($ch); if (!$result['ERR']) { preg_match_all('(.*)siU', $result['EXE'], $findlink);.*(.*).*
.*
for ($i = 0; $i < count($findlink[1]); $i++) $mode = ($url_mode == 1) ? $allLinks[] = $this->clean_url($findlink[1][$i]) : $allLinks[] = $findlink[1][$i];
$npage = $npage + 10;
if (preg_match('(first=' . $npage . '&)siU', $result['EXE'], $linksuiv) == 0)
break;
}
else
break;
}
foreach ($allLinks as $kk => $vv){ $allDmns[] = $vv; }
return array_unique($allDmns);
}
public function clean_url($x){ $z=parse_url($x); return $z['scheme']."://".$z['host']."/";; }
}
?>
0 commentaires:
Enregistrer un commentaire