Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- print "
- Mini Bing orker
- Coded By : Mr.MaGnoM
- Dev By : MrJoker
- Facebook.com/mr.magnom2
- Facebook.com/1337MrJoker
- ";
- function getsource($url, $proxy) {
- $curl = curl_init($url);
- curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5");
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- if ($proxy) {
- $proxy = explode(':', autoprox());
- curl_setopt($curl, CURLOPT_PROXY, $proxy[0]);
- curl_setopt($curl, CURLOPT_PROXYPORT, $proxy[1]);
- }
- $content = curl_exec($curl);
- curl_close($curl);
- return $content;
- }
- echo "\n\t ur dork here : ";$dork=trim(fgets(STDIN,1024));
- $do=urlencode($dork);
- //$ip="200.58.111.34";
- $npage = 1;
- $npages = 30000;
- $allLinks = array();
- $lll = array();
- while($npage <= $npages) {
- $x = getsource("http://www.bing.com/search?q=".$do."&first=" . $npage."&FORM=PERE4", $proxy);
- if ($x) {
- preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
- foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
- $npage = $npage + 10;
- if (preg_match("(first=" . $npage . "&)siU", $x, $linksuiv) == 0) break;
- } else break;
- }
- $URLs = array();
- foreach($allLinks as $url){
- $exp = explode("/", $url);
- $URLs[] = $exp[2];
- }
- $array = array_filter($URLs);
- $array = array_unique($array);
- $sss=count(array_unique($array));
- echo"\nToTaL SiTe : ". $sss.'';
- foreach ($array as $domain) {
- $cms=new cms_detect();
- $cms->go($domain);
- echo"\nhttp://".$cms->url."/";
- $fp = fopen("re.html","a+");
- fwrite($fp,"http://".$cms->url."/");
- fclose($fp);
- }
- class cms_detect{
- function __construct() {
- $this->cms="";
- $this->url="";
- $this->hitindex=0;
- $this->response_data = array();
- }
- function fetch($PATH,$KEY){
- $fetch_url=$this->url.$PATH;
- $fetch_data=@file_get_contents($fetch_url);
- $this->response_data[$KEY]=$fetch_data;
- }
- function compare_hit($CMS_KEY,$DATA_KEY,$CONTENT,$HIT_VALUE){
- $tmp_pos=strpos($this->response_data[$DATA_KEY],$CONTENT);
- if ($tmp_pos>0){
- $this->hit[$CMS_KEY]=$this->hit[$CMS_KEY]+$HIT_VALUE;
- };
- }
- function go($URL){
- $this->url=$URL;
- $this->fetch('','root');
- $this->fetch('administrator/','slash_administrator');
- $this->fetch('node/','slash_drupal');
- $this->fetch('user/login/','slash_drupal');
- $this->fetch('wp-admin/','slash_wp_admin');
- $this->compare_hit('joomla','slash_administrator','joomla.org',0.34);
- $this->compare_hit('joomla','slash_administrator','Joomla!',0.34);
- $this->compare_hit('joomla','slash_administrator','loginform',0.34);
- $this->compare_hit('wordpress','slash_wp_admin','wp-login.php',0.33);
- $this->compare_hit('wordpress','slash_wp_admin','wordpress',0.34);
- $this->compare_hit('wordpress','root','wp-content',0.34);
- $this->compare_hit('drupal','slash_drupal','sites/default',0.34);
- $this->compare_hit('drupal','slash_drupal','sites',0.34);
- @arsort($this->hit);
- $this->cms=@key($this->hit);
- $this->hitindex=@reset($this->hit);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement