微盾PHP脚本加密专家php解密算法


Posted in PHP onSeptember 13, 2020

第一种方法

<?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 
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; 
} 
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:/PHPnow/htdocs/1"); 
foreach($filelist as $value){ 
echo $value." :\t\t".eval_decode($value) . "\n\r<br>"; 
} 
?>

 如果还是不行推荐查看这篇文章:https://3water.com/article/195521.htm

PHP 相关文章推荐
Windows下的PHP5.0安装配制详解
Sep 05 PHP
php中通过smtp发邮件的类,测试通过
Jan 22 PHP
php中使用Imagick实现图像直方图的实现代码
Aug 30 PHP
解析PHP中数组元素升序、降序以及重新排序的函数
Jun 20 PHP
preg_match_all使用心得分享
Jan 31 PHP
yii框架builder、update、delete使用方法
Apr 30 PHP
PHP图像裁剪缩略裁切类源码及使用方法
Jan 07 PHP
PHP使用内置函数生成图片的方法详解
May 09 PHP
php验证身份证号码正确性的函数
Jul 20 PHP
ThinkPHP简单使用memcache缓存的方法
Nov 15 PHP
PHP 7.1中AES加解密方法mcrypt_module_open()的替换方案
Oct 17 PHP
tp5.1 框架数据库高级查询技巧实例总结
May 25 PHP
smarty中先strip_tags过滤html标签后truncate截取文章运用
Oct 25 #PHP
php正则过滤html标签、空格、换行符的代码(附说明)
Oct 25 #PHP
PHP 强制下载文件代码
Oct 24 #PHP
php下网站防IP攻击代码,超级实用
Oct 24 #PHP
php 实现进制转换(二进制、八进制、十六进制)互相转换实现代码
Oct 22 #PHP
php park、unpark、ord 函数使用方法(二进制流接口应用实例)
Oct 19 #PHP
php通过文件头检测文件类型通用代码类(zip,rar等)
Oct 19 #PHP
You might like
php中防止SQL注入的最佳解决方法
2013/04/25 PHP
phpinfo的知识点总结
2019/10/10 PHP
jquery中this的使用说明
2010/09/06 Javascript
11个用于提高排版水平的基于jquery的文字效果插件
2012/09/14 Javascript
图片img的src不变让浏览器重新加载实现方法
2013/03/29 Javascript
jquery无刷新验证邮箱地址实现实例
2014/02/19 Javascript
使用js Math.random()函数生成n到m间的随机数字
2014/10/09 Javascript
js简单工厂模式用法实例
2015/06/30 Javascript
JS实现点击上移下移LI行数据的方法
2015/08/05 Javascript
JavaScript中eval函数的问题
2016/01/31 Javascript
jstree的简单实例
2016/12/01 Javascript
快速解决bootstrap下拉菜单无法隐藏的问题
2018/08/10 Javascript
探秘vue-rx 2.0(推荐)
2018/09/21 Javascript
详解vue-router导航守卫
2019/01/19 Javascript
Jquery的Ajax技术使用方法
2019/01/21 jQuery
微信小程序iBeacon测距及稳定程序的实现解析
2019/07/31 Javascript
基于vue的tab-list类目切换商品列表组件的示例代码
2020/02/14 Javascript
jQuery+css实现的点击图片放大缩小预览功能示例【图片预览 查看大图】
2020/05/29 jQuery
Python 爬虫爬取指定博客的所有文章
2016/02/17 Python
python爬虫入门教程--HTML文本的解析库BeautifulSoup(四)
2017/05/25 Python
Python实现抓取网页生成Excel文件的方法示例
2017/08/05 Python
分享一个简单的python读写文件脚本
2017/11/25 Python
浅谈flask中的before_request与after_request
2018/01/20 Python
python操作docx写入内容,并控制文本的字体颜色
2020/02/13 Python
Django中文件上传和文件访问微项目的方法
2020/04/27 Python
python tqdm实现进度条的示例代码
2020/11/10 Python
PyTorch中的拷贝与就地操作详解
2020/12/09 Python
Pycharm制作搞怪弹窗的实现代码
2021/02/19 Python
荷兰男士时尚网上商店:Suitable
2017/12/25 全球购物
澳大利亚游乐场设备品牌:Lifespan Kids
2019/05/24 全球购物
乌克兰鞋类购物网站:Eobuv.com.ua
2020/11/28 全球购物
教师评优的个人自我评价分享
2013/09/19 职场文书
文明单位申报材料
2014/12/23 职场文书
新郎新娘答谢词
2015/01/04 职场文书
Django对接elasticsearch实现全文检索的示例代码
2021/08/02 Python
HTML静态页面获取url参数和UserAgent的实现
2022/08/05 HTML / CSS