Chinaunix首页 | 论坛 | 博客
  • 博客访问: 756823
  • 博文数量: 434
  • 博客积分: 11187
  • 博客等级: 上将
  • 技术积分: 5221
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 01:00
文章分类

全部博文(434)

文章存档

2016年(2)

2013年(1)

2012年(115)

2011年(195)

2010年(32)

2009年(89)

分类: LINUX

2011-01-06 17:49:41


$str=gzinflate(base64_decode('FZdFssTgeUW3 ..以前的内容... 33//4z7//5z//Bw=='));
while (preg_match("/base64_decode\('.*?'\)/s",$str)){
   if (preg_match("/eval\(gzinflate\(base64_decode\('(.*?)'\)\)\);/s",$str,$reg)){
     $s=gzinflate(base64_decode($reg[1]));
     $str=str_replace("eval(gzinflate(base64_decode('$reg[1]')));",$s,$str);
   }
   elseif (preg_match("/eval\(gzinflate\(str_rot13\(base64_decode\('([^']*)'\)\)\)\);/",$str,$reg)){
     $s=gzinflate(str_rot13(base64_decode($reg[1])));
     $str=str_replace("eval(gzinflate(str_rot13(base64_decode('$reg[1]'))));",$s,$str);
   }
   else break;
   $str=str_replace('','',$str);
}
echo $str;
?>

使用/usr/local/php/bin/php tt.php,其中tt.php中加了需要解密的代码
阅读(2593) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~