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.net/
//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>";
}
?>
文章末尾固定信息
我的微信
我的微信
微信扫一扫
评论