微盾PHP脚本加密专家php解密算法
2023-06-13 09:14:25 时间
<?php
/***********************************
*威盾PHP加密专家解密算法By:Neeao
*http://Neeao.com
*2009-09-10
***********************************/
$filename="play-js.php";//要解密的文件
$lines=file($filename);//0,1,2行
//第一次base64解密
$content="";
if(preg_match("/O0O0000O0\(".*"\)/",$lines[1],$y))
{
$content=str_replace("O0O0000O0("","",$y[0]);
$content=str_replace("")","",$content);
$content=base64_decode($content);
}
//第一次base64解密后的内容中查找密钥
$decode_key="";
if(preg_match("/\),".*",/",$content,$k))
{
$decode_key=str_replace("),"","",$k[0]);
$decode_key=str_replace("",","",$decode_key);
}
//查找要截取字符串长度
$str_length="";
if(preg_match("/,\d*\),/",$content,$k))
{
$str_length=str_replace("),","",$k[0]);
$str_length=str_replace(",","",$str_length);
}
//截取文件加密后的密文
$Secret=substr($lines[2],$str_length);
//echo$Secret;
//直接还原密文输出
echo"<?php\n".base64_decode(strtr($Secret,$decode_key,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"))."?>";
?>
微盾PHP脚本破解
<?php
functionget_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;
}
functioneval_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"filenotencode!";
}
$Key;
if(preg_match("/\),".*",/",$Content,$K)){
$Key=str_replace("),"","",$K[0]);
$Key=str_replace("",","",$Key);
}else{
return"notdecodekey!";
}
$Length;
if(preg_match("/,\d*\),/",$Content,$K)){
$Length=str_replace("),","",$K[0]);
$Length=str_replace(",","",$Length);
}else{
return"notdecodebase64string!";
}
$Secret=substr($Lines[2],$Length);
$Decode="<?php".base64_decode(strtr($Secret,$Key,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"))."?>";
file_put_contents($File,$Decode);
return"filedecodesuccess!";
}
$filelist=get_filetree("D:/PHPnow/htdocs/1");
foreach($filelistas$value){
echo$value.":\t\t".eval_decode($value)."\n\r<br>";
}
?>
相关文章
- php替换字符串中,PHP 替换字符串中的一些字符方法介绍
- PHP代码审计入门学习过程
- 【php】关闭PHP错误提示方法,防止错误信息泄露
- Linux 查看 PHP 版本的方法(linux查php版本)
- 测试Linux下PHP应用的实现(linux测试php)
- 数据库MySQL 数据库的 PHP 扩展研究(php扩展mysql)
- 使用Linux运行PHP脚本:完美实现(linux执行php脚本)
- 怎么办解决PHP中断MySQL连接的办法(php没有mysql)
- Linux操作系统下卸载PHP的步骤(linux卸载php)
- PHP在Linux下安装配置指南(php搭建环境linux)
- 实现PHP与MySQL的无缝连接,增强web开发效率(让php支持mysql)
- 实现PHP的Redis扩展安装(php安装redis扩展)
- Linux下简易安装 PHP(linux下php安装)
- 检查PHP Redis环境实现快速可靠性服务(检查php redis)
- PHP和HTML
- 解决Nginx+PHP(FastCGI)遇到的502BadGateway错误
- php入门学习知识点三PHP上传
- php数据结构与算法(PHP描述)查找与二分法查找
- PHP实现explort()功能的详解
- php-perl哈希算法实现(times33哈希算法)
- php保存二进制原始数据为图片的程序代码
- php中最简单的字符串匹配算法
- 通过php添加xml文档内容的方法