0xspade

ZONE-H Notifier

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