0xspade

ZONE-H Notifier

Sep 15th, 2016
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.14 KB | None | 0 0
  1. <?php
  2.  
  3. //Last update: 28/1/2012
  4.  
  5. /////////////////////////////////////////
  6. //    Superfast Zone-H submitter
  7. // ( with HTTP Pipelining support )
  8. //          BY
  9. //      TiGER-M@TE
  10. // Email: localhost_443@live.com
  11. //  # Bangladeshi HackeR
  12. /////////////////////////////////////////
  13.  
  14.  
  15. /////////////////////////////////////////
  16. // USAGE::
  17. // Linux: php-cli zone.php domains.txt
  18. // Windows : "[path to php]" zone.php domains.txt
  19. // e.g: "C:\PHP\php.exe" zone.php domains.txt
  20.  
  21. //OR
  22.  
  23. // upload to a server,and the browse http://site.com/zone.php
  24. /////////////////////////////////////////
  25.  
  26. $defacer='Your Nick';
  27. $display_details=0;      // SET it to '1' to display domains as it is submitted
  28. $method=14;  
  29. $reason=5;
  30.  
  31. ////////////////DO NOT EDIT ANYTHING BELOW//////////////////
  32.  
  33.  
  34. error_reporting(0);
  35. set_time_limit(0);
  36. if(!function_exists('curl_init')){echo "cURL not installed/disabled.\n";exit;}
  37. $cli=(isset($argv[0]))?1:0;
  38. if($cli==1){
  39. $file=$argv[1];
  40. $sites=file($file);
  41. if(!file_exists($file)){echo "$file not found.\n";exit;}
  42. }else{
  43.  
  44. if(function_exists(apache_setenv)){
  45. @apache_setenv('no-gzip', 1);}
  46. @ini_set('zlib.output_compression', 0);
  47. @ini_set('implicit_flush', 1);
  48. @ob_implicit_flush(true);
  49. @ob_end_flush();
  50.  
  51. if(isset($_POST['domains'])){
  52. $sites=explode("\n",$_POST['domains']);
  53. }
  54. if (file_exists($_FILES["file"]["tmp_name"])){
  55. $file=$_FILES["file"]["tmp_name"];$sites=file($file);}
  56. echo <<<EOF
  57. <html>
  58. <head>
  59. <meta http-equiv="Content-Language" content="en-us">
  60. </head>
  61. <title>Fastest Zone-H Mass Deface Poster</title>
  62. <body text="#00FF00" bgcolor="#000000" vlink="#008000" link="#008000" alink="#008000">
  63. <div align="center">
  64. <table width="67%" style="border: 2px dashed #FF0000; background-color: #000000; color:#C0C0C0">
  65. <tr><td align=center>
  66. <font face="Courier New" size=4 color=yellow>Fastest Zone-H Mass Deface Poster</font>
  67. </td></tr>
  68. </table>
  69. <br /><pre>
  70. EOF;
  71. if(!isset($_POST['defacer'])){
  72. echo <<<EOF
  73. <form enctype="multipart/form-data" method="POST">
  74. <div align='center'>
  75. <span lang='en-us'><font color='#FF0000'><b>Your Nick:</b></font></span><br/><input name="defacer" type="text" value="$defacer" /><br/>
  76. <table width='55%' style='border: 2px dashed #FF0000; background-color: #000000; color:#C0C0C0'>
  77. <tr>
  78. <td align='center'>
  79. <span lang='en-us'><font color='#FF0000'><b>Domains:</b></font></span>
  80.  
  81. <p align='center'>&nbsp;<textarea rows='30' name='domains' cols='50' style='border: 2px dashed #FFFFFF; background-color: #000000; color:#C0C0C0'></textarea><br/>
  82. <span lang='en-us'><font color='#FF0000'><b>OR</b></font></span><br/>Submit form .txt file:<br/><input name="file" type="file" /><br /> <br/><br/><input type='submit' value='    Subtmit    ' name='submit' style='color: #FF0000; font-weight: bold; border: 1px dashed #333333; background-color: #000000'></p></td>
  83. </tr>
  84. </table></form>
  85. EOF;
  86. }
  87. $defacer=$_POST['defacer'];}
  88. if(!$sites){echo '</pre></body></html>';exit;}
  89. $sites=array_unique(str_replace('http://','',$sites));
  90. $total=count($sites);
  91. echo "[+] Total unique domain: $total\n\n";
  92.  
  93. $pause=10;
  94. $start=time();
  95. $main=curl_multi_init();
  96.  
  97. for($m=0;$m<3;$m++){
  98. $http[] = curl_init();
  99. }
  100. for($n=0;$n<$total;$n +=30){
  101. if($display_details==1){
  102. for($x=0;$x<30;$x++){
  103. echo'[+] Adding '.rtrim($sites[$n+$x]).'';
  104. echo "\n";
  105. }
  106. }
  107. $d=$n+30;
  108. if($d>$total){$d=$total;}
  109. echo "=====================>[$d/$total]\n";
  110.  
  111. for($w=0;$w<3;$w++){
  112. $p=$w * 10;
  113.  
  114. if(!(isset($sites[$n+$p]))){$pause=$w;break;}
  115. $posts[$w]="defacer=$defacer&domain1=http%3A%2F%2F".rtrim($sites[$n+$p])."&domain2=http%3A%2F%2F".rtrim($sites[$n+$p+1])."&domain3=http%3A%2F%2F".rtrim($sites[$n+$p+2])."&domain4=http%3A%2F%2F".rtrim($sites[$n+$p+3])."&domain5=http%3A%2F%2F".rtrim($sites[$n+$p+4])."&domain6=http%3A%2F%2F".rtrim($sites[$n+$p+5])."&domain7=http%3A%2F%2F".rtrim($sites[$n+$p+6])."&domain8=http%3A%2F%2F".rtrim($sites[$n+$p+7])."&domain9=http%3A%2F%2F".rtrim($sites[$n+$p+8])."&domain10=http%3A%2F%2F".rtrim($sites[$n+$p+9])."&hackmode=".$method."&reason=".$reason."&submit=Send";
  116.  
  117. $curlopt=array(CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.16 (KHTML, like Gecko) Chrome/18.0.1003.1 Safari/535.16',CURLOPT_RETURNTRANSFER => true,CURLOPT_FOLLOWLOCATION =>true,CURLOPT_ENCODING => true,CURLOPT_HEADER => false,CURLOPT_HTTPHEADER => array("Keep-Alive: 7"),CURLOPT_CONNECTTIMEOUT => 3,CURLOPT_URL => 'http://www.zone-h.com/notify/mass',CURLOPT_POSTFIELDS => $posts[$w]);
  118. curl_setopt_array($http[$w],$curlopt);
  119. curl_multi_add_handle($main,$http[$w]);
  120.  
  121.  
  122. }
  123.  
  124. $running = null;
  125.         do{
  126.                 curl_multi_exec($main,$running);
  127.         }while($running > 0);
  128. for($m=0;$m<3;$m++){
  129. if($pause==$m){break;}
  130. curl_multi_remove_handle($main, $http[$m]);
  131. $code = curl_getinfo($http[$m], CURLINFO_HTTP_CODE);
  132. if ($code != 200) {
  133. while(true){
  134. echo' [-]Serevr Error!....Retrying';echo "\n";
  135. sleep(5);
  136. curl_exec($http[$m]);
  137. $code = curl_getinfo($http[$m], CURLINFO_HTTP_CODE);
  138. if( $code== 200){break 1;}
  139.  
  140. } } } }
  141.  
  142. $end= time() - $start;
  143. echo '+++++++DONE+++++++';echo "\n\n[*]Time took: $end seconds\n";curl_multi_close($main);
  144. if($cli==0){echo '</pre></body></html>';}
  145. exit;
  146. ?>
Add Comment
Please, Sign In to add comment