Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Zone-H Poster with MultiThread
- * Coded by miyachung
- * Janissaries.Org
- * Special Thanks : burtay
- */
- set_time_limit(0);
- echo '<title>Zone-H Poster - Coded by Miyachung || Janissaries.Org</title>';
- if($_POST)
- {
- $sites = $_POST['sites'];
- $defacer = $_POST['defacer'];
- $thread = $_POST['thread'];
- $post = new poster();
- $post->defacer = $defacer;
- $post->thread = $thread;
- $post->execution($sites);
- }
- else
- {
- echo '<form method="post" action="">
- Defacer ; <br />
- <input type="text" name="defacer" /><br />
- Num.Thread ; <br />
- <input type="text" name="thread" /><br />
- Sites ; <br />
- <textarea name="sites" cols="60" rows="8"></textarea><br />
- <input type="submit" value="post" />
- </form>';
- }
- class poster
- {
- public $defacer;
- public $thread;
- private $hackmode = 5;
- private $reason = 1;
- public function execution($sites)
- {
- $time1 = time();
- $sites = explode("\n",$sites);
- $sites = array_chunk($sites,$this->thread);
- $this->post($sites);
- $time2 = time();
- echo "<br /><strong>Elapsed time : ".($time2-$time1)." second</strong>";
- }
- private function post($sites)
- {
- $multi = curl_multi_init();
- $totalerror = 0;
- $totalok = 0;
- foreach($sites as $site)
- {
- for($i=0;$i<=count($site)-1;$i++)
- {
- if(!preg_match('/http/',$site[$i])) $post_site = "http://".$site[$i];
- $post_site = urlencode($post_site);
- $curl[$i] = curl_init();
- curl_setopt($curl[$i],CURLOPT_RETURNTRANSFER,1);
- curl_setopt($curl[$i],CURLOPT_URL,"http://zone-h.org/notify/single");
- curl_setopt($curl[$i],CURLOPT_POST,1);
- # defacer=DEFACER&domain1=SÝTE&hackmode=5&reason=1
- curl_setopt($curl[$i],CURLOPT_POSTFIELDS,"defacer=".$this->defacer."&domain1=".$post_site."&hackmode=".$this->hackmode."&reason=".$this->reason."");
- curl_multi_add_handle($multi,$curl[$i]);
- }
- do
- {
- curl_multi_exec($multi,$active);
- usleep(11);
- }
- while( $active > 0 );
- foreach($curl as $cid => $cson)
- {
- $data[$cid] = curl_multi_getcontent($cson);
- preg_match('/color="red">(.*?)<\/font>/',$data[$cid],$cevap);
- if($cevap[1] != "OK")
- {
- echo "<font color='blue'>$site[$cid]</font>"." ==>$cevap[1]<br />\n";
- $totalerror++;
- }
- else
- {
- echo "<font color='blue'>$site[$cid]</font>"." ==><font color='red'>$cevap[1]</font><br />\n";
- $totalok++;
- }
- curl_multi_remove_handle($multi,$cson);
- }
- }
- 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";
- echo "<br /><font style='color:red;font:bold 16px arial;'>Posting finish Coded by Miyachung || Janissaries.Org</font>\n";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment