Home >Backend Development >PHP Tutorial > 麻烦各位帮个忙解密一上php加密代码

麻烦各位帮个忙解密一上php加密代码

WBOY
WBOYOriginal
2016-06-13 13:16:51838browse

麻烦各位帮个忙解密一下php加密代码
我用这个解密,但解不掉,不知道为啥

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><?php $Code = '解密代码'; // base64编码 
$File = 'test.php';//解码后保存的文件 
$Temp = base64_decode($Code); 
$temp = gzinflate($Temp); 
$FP = fopen($File,"w"); 
fwrite($FP,$temp); 
fclose($FP); 
echo "解密成功!"; 
?>



加密代码如下:

这里贴不了太长的代码,麻烦各位看这个地址:

http://www.izhu.org/code.txt



------解决方案--------------------
PHP code


$code = '解密代码'; // 你的txt的内容全部粘贴过来

do {

    $code = str_replace('eval', '$code =', $code);
    try{
        eval($code);
    } catch (Exception $e) {
        echo 'errro : ' . $code;
        echo $e->getMessage();
        break;
    }

    $code = trim($code, '?php');
// 这里也可以用 strpos($code, 'eval')
}while(substr(trim($code), 0, 4) == 'eval');

echo $code; <div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn