sj-root

zone-h

May 14th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.75 KB | None | 0 0
  1. <?php
  2. /*
  3. * Zone-H Poster with MultiThread
  4. * Coded by miyachung
  5. * Janissaries.Org
  6. * Special Thanks : burtay
  7. */
  8.  
  9. set_time_limit(0);
  10. echo '<title>Zone-H Poster - Coded by Miyachung || Janissaries.Org</title>';
  11. if($_POST)
  12. {
  13. $sites   = $_POST['sites'];
  14. $defacer = $_POST['defacer'];
  15. $thread  = $_POST['thread'];
  16.  
  17. $post = new poster();
  18. $post->defacer = $defacer;
  19. $post->thread  = $thread;
  20. $post->execution($sites);
  21.  
  22. }
  23. else
  24. {
  25. echo '<form method="post" action="">
  26. Defacer ; <br />
  27. <input type="text" name="defacer" /><br />
  28. Num.Thread ; <br />
  29. <input type="text" name="thread" /><br />
  30. Sites ; <br />
  31. <textarea name="sites" cols="60" rows="8"></textarea><br />
  32. <input type="submit" value="post" />
  33. </form>';
  34. }
  35.  
  36. class poster
  37. {
  38.  
  39.     public  $defacer;
  40.     public  $thread;
  41.     private $hackmode      = 5;
  42.     private $reason     = 1;
  43.  
  44.     public function execution($sites)
  45.     {
  46.         $time1 = time();
  47.         $sites = explode("\n",$sites);
  48.         $sites = array_chunk($sites,$this->thread);
  49.  
  50.         $this->post($sites);
  51.         $time2 = time();
  52.         echo "<br /><strong>Elapsed time : ".($time2-$time1)." second</strong>";
  53.     }
  54.  
  55.     private function post($sites)
  56.     {
  57.  
  58.             $multi = curl_multi_init();
  59.             $totalerror = 0;
  60.             $totalok    = 0;
  61.             foreach($sites as $site)
  62.             {
  63.                 for($i=0;$i<=count($site)-1;$i++)
  64.                 {
  65.                 if(!preg_match('/http/',$site[$i])) $post_site = "http://".$site[$i];
  66.                 $post_site = urlencode($post_site);
  67.                
  68.                 $curl[$i] = curl_init();
  69.                 curl_setopt($curl[$i],CURLOPT_RETURNTRANSFER,1);
  70.                 curl_setopt($curl[$i],CURLOPT_URL,"http://zone-h.org/notify/single");
  71.                 curl_setopt($curl[$i],CURLOPT_POST,1);
  72.                 # defacer=DEFACER&domain1=SÝTE&hackmode=5&reason=1
  73.                 curl_setopt($curl[$i],CURLOPT_POSTFIELDS,"defacer=".$this->defacer."&domain1=".$post_site."&hackmode=".$this->hackmode."&reason=".$this->reason."");
  74.                 curl_multi_add_handle($multi,$curl[$i]);
  75.                 }
  76.  
  77.             do
  78.             {
  79.             curl_multi_exec($multi,$active);
  80.             usleep(11);
  81.             }
  82.             while( $active > 0 );  
  83.  
  84.             foreach($curl as $cid => $cson)
  85.             {
  86.             $data[$cid] = curl_multi_getcontent($cson);
  87.                 preg_match('/color="red">(.*?)<\/font>/',$data[$cid],$cevap);
  88.                 if($cevap[1] != "OK")
  89.                 {
  90.                 echo "<font color='blue'>$site[$cid]</font>"." ==>$cevap[1]<br />\n";
  91.                 $totalerror++;
  92.                 }
  93.                 else
  94.                 {
  95.                 echo "<font color='blue'>$site[$cid]</font>"." ==><font color='red'>$cevap[1]</font><br />\n";
  96.                 $totalok++;
  97.                 }
  98.             curl_multi_remove_handle($multi,$cson);
  99.             }
  100.                
  101.             }
  102.         echo "<br /><font color='blue'>Total OK: </font><font color='red'>$totalok</font><br /><font color='blue'>Total ERROR: </font><font color='red'>$totalerror</font>\n";
  103.         echo "<br /><font style='color:red;font:bold 16px arial;'>Posting finish Coded by Miyachung || Janissaries.Org</font>\n";
  104.     }
  105.  
  106. }
  107.  
  108. ?>
Advertisement
Add Comment
Please, Sign In to add comment