搜索内容

PHP $OOO0O0O00=__FILE__;$OOO000000 解密工具 批量解密文件 微盾PHP脚本加密及解密算法<转>

PHP $OOO0O0O00=__FILE__;$OOO000000 解密工具 批量解密文件 微盾PHP脚本加密及解密算法

 

 

 

    <?php

    /*微盾PHP脚本加密及解密算法*/

    function get_filetree($path){

    $tree = array();

    foreach(glob($path . '/*') as $single){

    if(is_dir($single)){

    $tree = array_merge($tree,get_filetree($single));

    } else {

    $tree[] = $single;

    }

    }

    return $tree;

    }

    https://www.lseventt.com/




    //Lseven

    function eval_decode($File)

    {

    $Lines = file($File);

    $Content;

    if(preg_match("/O0O0000O0\('.*'\)/", $Lines[1], $S)){

    $Content = str_replace("O0O0000O0('", "", $S[0]);

    $Content = str_replace("')", "", $Content);

    $Content = base64_decode($Content);

    } else {

    return "file not encode!";

    }




    $Key;

    if(preg_match("/\),'.*',/", $Content, $K)){

    $Key = str_replace("),'", "", $K[0]);

    $Key = str_replace("',", "", $Key);

    } else {

    return "not decode key!";

    }




    $Length;

    if(preg_match("/,\d*\),/", $Content, $K)){

    $Length = str_replace("),", "", $K[0]);

    $Length = str_replace(",", "", $Length);

    } else {

    return "not decode base64 string!";

    }

    $Secret = substr($Lines[2], $Length);

    $Decode = "<?php".base64_decode(strtr($Secret,$Key,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')) ."?>";

    file_put_contents($File, $Decode);

    return "file decode success!";

    }




    //要需密的文件路径,文件夹位置

    $filelist = get_filetree("D://ltseventt.com");

    foreach($filelist as $value){

    echo $value." :\t\t".eval_decode($value) . "\n\r<br>";

    }




    ?>

 

版权声明:
作者:LsevenTT站群哥
链接:https://www.LsevenTT.com/archives/14.html
来源:PHP $OOO0O0O00=__FILE__;$OOO000000 解密工具 批量解密文件 微盾PHP脚本加密及解密算法<转>
文章版权归作者所有,未经允许请勿转载。

THE END
分享
手机扫码二维码打开
< <上一篇
下一篇>>