// 本字符串只是示例用,把你要解密的字符串放到str中
$str="eval(gzinflate(base64_decode('DZfHEoTWEUV//Z9//g8=')));";

while(1){
if (!(strpos($str, 'eval')===false)){
preg_match("/eval\((([0-9a-z_]+\()+)([^\(]*)\)/",$str,$match);
$funList=explode('(', $match[1]);
$s1=$match[count($match)-1];
if (is_array($funList) && count($funList)){
for($i=count($funList)-1; $i>=0; $i–){
$fun=$funList[$i];
if ($fun){
$s1=$funList[$i]($s1);
}
}
}
$str=$s1;
//print_r($s1);exit;
//preg_match(“/eval\((.*)\)/”,$s1,$match);
//echo $match[1];exit;
}else{
break;
}
}

echo $str;

Published in PHP

No Responses to “php 解密eval(gzinflate(str_rot13(base64_decode”

Leave a Reply

请输入算式结果(看不清请点击图片)
(必须)