PHP技术,PHP研究及学习,Python学习,人工智能,大数据服务

PHP+Python » 编程开发 » PHP eval base64 混淆解密,微盾PHP脚本加密专家php解密算法

PHP eval base64 混淆解密,微盾PHP脚本加密专家php解密算法

PHP加密,首先去下载加密工具:微盾PHP加密专家 微盾PHP脚本加密专家很是牛B的一个PHP加密工具, 加密过后的文件类似: [php] <?php // adophper.com, All rights reserved. $OOO0O0O00=__FILE__;$OOO000000=urldecode('%74%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64%66%70%6e%72');$OO00O0000=1372;$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09PMDAwMDAwezEyfS4kT09PMDAwMDAwezE4fS4kT09PMDAwMDAwezV9LiRPT08wMDAwMDB7MTl9O2lmKCEwKSRPMDAwTzBPMDA9JE9PME9PMDAwMCgkT09PME8wTzAwLCdyYicpOyRPTzBPTzAwME89JE9PTzAwMDAwMHsxN30uJE9PTzAwMDAwMHsyMH0uJE9PTzAwMDAwMHs1fS4kT09PMDAwMDAwezl9LiRPT08wMDAwMDB7MTZ9OyRPTzBPTzAwTzA9JE9PTzAwMDAwMHsxNH0uJE9PTzAwMDAwMHswfS4kT09PMDAwMDAwezIwfS4kT09PMDAwMDAwezB9LiRPT08wMDAwMDB7MjB9OyRPTzBPTzAwME8oJE8wMDBPME8wMCwxMTc2KTskT08wME8wME8wPSgkT09PMDAwME8wKCRPTzBPTzAwTzAoJE9PME9PMDAwTygkTzAwME8wTzAwLDM4MCksJ2xMeUVLUzNjTjVGODBwSjdiSHJkQVRpNlhlWlB0K2pPbjRnVll6bWhrb2F2Q3VEMmZ3SU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tmbg8yHOHxTAiI+ve6zQPQ5Y5sxoJfxFObxF53p2+iGx7rHuP1HzPyxW+14ztmAk53s4tyYu7mp2+iGxFyYqEbkYA3SherlRN3Gz+ILbXi+zFyHVPQTD+ywKFy+de6HxZiGh5IYu7h+ke65zF3SItmSGFy+Me6HOZibh7d/wFrYu7m+z+KeoeiwYFy+Me6HOP3zM+SRfXi+zt1zUertoFdCpygHMZ3RQNExn5SL4e1Au7hpkPQtkFdCpygHxZ3zM8dG4tQpoe1/k5QL4e1Ah8yHMZ3RQFdCpygHCZ6px7rHuP1HzPyxW+14ztmAk53s4tyYu7mRIe3TIFy5CP1+OZibne3TMXINo8dGCZiso+ynYA3SherxWemzItQHrPQtD5Ifh8gHbXi+z8dGCZ6pxAmRQtIYu7hpzP3TV+ynoJfxF5cHkZ60u7mSMt1zhPgngP3zM+yNC53wotQboJfxF5cHkZ60u7mSMt1zhPgngt1T4tmpkbhYg8yHOHxTAiI+MeiSIX14yjr++FdCpygHxZ3zM8dG4tQpoe1/kNmuzj6+2tmbg8yHOHxTAiI+ve6zQPQ5Y5sxoJfxF5cHkZ60u7mHotQLCX6YkFdCpyhxpyhLsXmwoXILm+iGV+3z2PgLVP3T4tYw2eInojfxF53s2e3TC7AxkNmw2eINoJfxF53s2e3TC8dGQZ3TIer44th54jrngP3Rh61zYNVxWX65IX6YkNmGztrNCNgNoFrYu7mHzP3TxernoJfxF5cHkZ60u7h5ze3zIeipxFy5oPmHzjyNoJfxFObxFObxF [/php] 当然有PHP加密算法肯定就有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; } function eval_decode($File) { $Lines = file($File); //第一次base64解密 $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!"; } //第一次base64解密后的内容中查找密钥 $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("E:/phpcms/Lib"); foreach($filelist as $value) { echo $value." :tt".eval_decode($value)."n"; } ?> [/php]

本站使用ThinkPHP框架开发读图网主题,目前托管在阿里云,图片由读图网提供. 蜀ICP备12031064号

Copyright © 2011-2018adophper.com All Rights Reserved.