<?php
//已经加密的文件内容
$a="eval(gzinflate(str_rot13(base64_decode('加密后base_decode括号之间的代码'))));";
function decodephp($a) {
$max_level=300; //最大层数
for($i=0;$i<$max_level;$i++) {
ob_start();
eval(str_replace('eval','echo',$a));
$a = ob_get_clean();
if(strpos($a,'eval(gzinflate(str_rot13(base64_decode')===false) {
return $a;
}
}
}
echo decodephp($a);
//将解密的代码保存为decode.txt文件
file_put_contents("decode.txt", decodephp($a));
?>