php 威盾解密工具源代码(新增zend解密工具)

发布时间:2014-10-23 23:24:47
来源:分享查询网

<?php $file = '../viicms/Lib/Action/BaseAction.class.php'; //要解密的文件 error_reporting(E_ERROR); header("content-Type: text/html; charset=gb2312"); set_time_limit(120); function Read($filename) { $handle = @fopen($filename,"r"); $filecode = @fread($handle,@filesize($filename)); @fclose($handle); return $filecode; } function weidun_decode($code) { $tmp = '';$tmp1 = '';$tmp2 = ''; $linearray = file($code); $keyarray = array(base64_decode('L08wTzAwMDBPMFwoJy4qJ1wpLw=='),base64_decode('L1wpLCcuKicsLw=='),base64_decode('LyxcZCpcKSwv'),base64_decode('TzBPMDAwME8wKCc='),base64_decode('QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLw==')); if(preg_match($keyarray[0],$linearray[1],$str)){$tmp = str_replace($keyarray[3],'',$str[0]);$tmp = str_replace('\')','',$tmp);$tmp = base64_decode($tmp);} if(preg_match($keyarray[1],$tmp,$str1)){$tmp1 = str_replace('),\'','',$str1[0]);$tmp1 = str_replace('\',','',$tmp1);} if(preg_match($keyarray[2],$tmp,$str2)){$tmp2 = str_replace('),','',$str2[0]);$tmp2 = str_replace(',','',$tmp2);} return '<?php'."\r\n".base64_decode(strtr(substr($linearray[2],$tmp2),$tmp1,$keyarray[4]))."\r\n".'?>'; } echo '解密前:<br /><textarea name="newcode" COLS="80" ROWS="15">'.htmlspecialchars(Read($file)).'</textarea><br /><br />'; echo '解密后:<br /><textarea name="newcode" COLS="80" ROWS="15">'.htmlspecialchars(weidun_decode($file)).'</textarea><br />'; ?> 今天又遇见zend加密的代码,网上找了个解密工具,很好用,解密之后运行文件报了些语法错误,修改再次运行 一切OK  下载路由:http://yun.baidu.com/share/link?shareid=1553037593&uk=2903375990

返回顶部
查看电脑版