php文件解密

//条件判断很重要,参考了别人的$pos = strpos($b, "'");
$b =gzinflate(base64_decode('加密代码'));
$a='test.php';
$c = 1;
while(strpos($b, "eval")){
$c+=1;
$pos = strpos($b, "'");
$b=substr($b, $pos + 1);
$b=trim(str_replace("' )) );","",$b));
$b=gzinflate(base64_decode($b));
}
echo '解密成功。次数:'.$c;
file_put_contents($a,$b);

 

加密的代码就不贴了 就是 base64+gzinflate加密