<?php /////////////////////////////////////////////////////////// Antiddos PHP Skripta, by Serbian Cyber Team === === It is BEST to use AntiDDOS on VPS or Dedicated Servers...
*/ $debug = false; // debug mode, disabled ban, Jednostavno pokazuje dali je ip bio banovan ili nije. if ($debug) error_reporting(E_ALL); else error_reporting(0);
/* Possible values - $ddos 1-5: | 1. Check withcookies | 2. Duble check $_GET antiddos-a i meta refresh-a | 3. Request for WWW-Authenticate | 4. Disable all, but BOT's can not disable.. | 5. Turn off site if it is big BUG. */
$ddos = 1; $log = false; $dir = dirname(__file__) . '/cyki_bots/'; //DDOS l $ddos_redirect_host = 'http://google.com/'; // Forwarding DDOS-a $icq = '123456'; //Admins ICQ $off_message = 'BUG.'; // $anticyka = md5(sha1('botik' . strrev(getenv('HTTP_USER_AGENT')))); $ban_message = 'You have been banned, try to contact administrator admin@hackcomunity.com' . $icq . '<hr>(c)XakNet antiddos module'; // Ban msg $exec_ban = "iptables -A INPUT -s " . $_SERVER["REMOTE_ADDR"] . " -j DROP"; // для iptables(Debian/ubuntu/etc) $load = sys_getloadavg(); // Funkcija za preuzimanje opterecenja \=\ $ddosuser = 'lol_ddos'; $ddospass = substr(ip2long($_SERVER['REMOTE_ADDR']), 0, rand(2, 4)); //nije testirano //Check:
} break; ///////////////////////// case 2: if (empty($_COOKIE['ddos'])) { if (empty($_GET['antiddos'])) { if (! $_COOKIE['ddos_log'] == 'bil') //Checking cookies for request die('<meta http-equiv="refresh" content="0;URL=?antiddos=' . $anticyka . '" />');
if (! $debug) { ban(); die("Forward line of adress"); } else { echo "Forward line of adress"; die("Blocked."); } } } break; case 3: if (! isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] !== $ddosuser || $_SERVER['PHP_AUTH_PW'] !== $ddospass) { header('WWW-Authenticate: Basic realm="Vvedite parol\': ' . $ddospass . ' | Login: ' . $ddosuser . '"'); header('HTTP/1.0 401 Unauthorized'); if (! $debug) ban();
else die("Blocked");
die("<h1>401 Unauthorized</h1>"); } break; case 4: die($off_message); //Site turned off break; case 5: if ($load[0] > 80) { header('HTTP/1.1 503 Too busy, try again later'); die('<center><h1>503 Server too busy.</h1></center><hr><small><i>Server too busy. Please try again later. Apache server on ' . $_SERVER['HTTP_HOST'] . ' at port 80 with <a href="http://serbiancyberteam.com/">ddos protect</a></i></small>'); } break; default: break; ////////////////////////// } if ($_COOKIE['ddos'] == $anticyka) @unlink($dir . $_SERVER["REMOTE_ADDR"]); } ...................................................................................... ////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////By SCT//////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////// ......................................................................................
?>
Sursa: blksecurity
Pentru acest mesaj, autorul Kinder Bueno a primit multumiri de la: Dede44
Users browsing this forum: dani_yoyoyo and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum