<?php
$file = 'qb_function.php'; //要破解的文件
copy($file, '0_'.$file);
$fp = fopen($file, 'r');
$code = fread($fp, filesize($file));
fclose($fp);
$n = 1;
while($n < 1000){
if($n == 1){
$code = str_replace("__FILE__", "'0_$file'", $code);
$code = str_replace(');eval_r($', ');$decode1=trim($', $code);
}else{
$replace = '$decode'.$n.'=trim(';
$code = str_replace('eval_r(', $replace, '<?php '.$code);
}
$tmp_file = 'detmp'.$n.'.php';
file_put_contents($tmp_file, $code);
include($tmp_file);
$val = 'decode'.$n;
$code = $$val;
unlink($tmp_file);
if(strlen($code)>50 && strpos($code, 'eval_r(') === false){
break;
}
$n++;
}
$code = "<?php/r/n".$code."/r/n?>";
file_put_contents($file.'.de.php', $code);
unlink('0_'.$file);
echo 'done: '.$file.'.de.php';
exit;
?>
新闻热点
疑难解答