首页 > Other > 威盾PHP加密专家解密算法

威盾PHP加密专家解密算法

  1. <?php
  2. /***********************************
  3. *威盾PHP加密专家解密算法 By:Neeao
  4. *http://Neeao.com
  5. *2009-09-10
  6. ***********************************/
  7. $filename=”install.php”;//要解密的文件
  8. $lines = file($filename);//0,1,2行
  9. //第一次base64解密
  10. $content=””;
  11. if(preg_match(“/O0O0000O0(‘.*’)/”,$lines[1],$y))
  12. {
  13. $content=str_replace(“O0O0000O0(‘”,””,$y[0]);
  14. $content=str_replace(“‘)”,””,$content);
  15. $content=base64_decode($content);
  16. }
  17. //第一次base64解密后的内容中查找密钥
  18. $decode_key=””;
  19. if(preg_match(“/),’.*’,/”,$content,$k))
  20. {
  21. $decode_key=str_replace(“),'”,””,$k[0]);
  22. $decode_key=str_replace(“‘,”,””,$decode_key);
  23. }
  24. //截取文件加密后的密文
  25. $Secret=substr($lines[2],380);
  26. //echo $Secret;
  27. //直接还原密文输出
  28. echo “<?php “.base64_decode(strtr($Secret,$decode_key,’ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/’)).”?>”;
  29. ?>
分类:Other
  1. 还没有评论。
  1. No trackbacks yet.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: