PHP使用eval(gzinflate(str_rot13(base64_decode('BASE64加密后内容'))))核心代码的解密

来源:互联网 发布:openssl linux 编辑:程序博客网 时间:2024/06/11 05:02

 <?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));
?>

 

原创粉丝点击