威盾解密php源代码

时间:2011-06-28 18:31 作者:php 点击:
威盾解密工具源代码 php版

  

 

  1. <?php  
  2. $file = 'E:/web/www.phpzy.com/jie.php'//要解密的文件  
  3.  
  4. error_reporting(E_ERROR);  
  5. header("content-Type: text/html; charset=gb2312");  
  6. set_time_limit(120);  
  7. function Read($filename)  
  8. {  
  9.         $handle = @fopen($filename,"r");  
  10.         $filecode = @fread($handle,@filesize($filename));  
  11.         @fclose($handle);  
  12.         return $filecode;  
  13. }  
  14. function weidun_decode($code)  
  15. {  
  16.         $tmp = '';$tmp1 = '';$tmp2 = '';  
  17.         $linearray = file($code);  
  18.         $keyarray = array(base64_decode('L08wTzAwMDBPMFwoJy4qJ1wpLw=='),base64_decode('L1wpLCcuKicsLw=='),base64_decode('LyxcZCpcKSwv'),base64_decode('TzBPMDAwME8wKCc='),base64_decode('QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLw=='));  
  19.         if(preg_match($keyarray[0],$linearray[1],$str)){$tmp = str_replace($keyarray[3],'',$str[0]);$tmp = str_replace('\')','',$tmp);$tmp = base64_decode($tmp);}  
  20.         if(preg_match($keyarray[1],$tmp,$str1)){$tmp1 = str_replace('),\'','',$str1[0]);$tmp1 = str_replace('\',','',$tmp1);}  
  21.         if(preg_match($keyarray[2],$tmp,$str2)){$tmp2 = str_replace('),','',$str2[0]);$tmp2 = str_replace(',','',$tmp2);}  
  22.         return '<?php'."\r\n".base64_decode(strtr(substr($linearray[2],$tmp2),$tmp1,$keyarray[4]))."\r\n".'?>';  
  23. }  
  24. echo '解密前:<br /><textarea name="newcode" COLS="80" ROWS="15">'.htmlspecialchars(Read($file)).'</textarea><br /><br />';  
  25. echo '解密后:<br /><textarea name="newcode" COLS="80" ROWS="15">'.htmlspecialchars(weidun_decode($file)).'</textarea><br />';  
  26. ?>  

 


标签(Tag):威盾解密工具 解密工具php源代码
------分隔线----------------------------
推荐内容
热点内容