微盾php脚本破解
<?php function get_filetree($path){ $tree = array(); foreach(glob($path . '/*') as $single){ if(is_dir($single)){ $tree = array_merge($tree,get_filetree($single)); } else { $tree[] = $single; } } return $tree; } function eval_decode($file) { $lines = file($file); $content; if(preg_match("/o0o0000o0\('.*'\)/", $lines[1], $s)){ $content = str_replace("o0o0000o0('", "", $s[0]); $content = str_replace("')", "", $content); $content = base64_decode($content); } else { return "file not encode!"; } $key; if(preg_match("/\),'.*',/", $content, $k)){ $key = str_replace("),'", "", $k[0]); $key = str_replace("',", "", $key); } else { return "not decode key!"; } $length; if(preg_match("/,\d*\),/", $content, $k)){ $length = str_replace("),", "", $k[0]); $length = str_replace(",", "", $length); } else { return "not decode base64 string!"; } $secret = substr($lines[2], $length); $decode = "<?php".base64_decode(strtr($secret,$key,'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/')) ."?>"; file_put_contents($file, $decode); return "file decode success!"; } $filelist = get_filetree("d:/phpnow/htdocs/1"); foreach($filelist as $value){ echo $value." :\t\t".eval_decode($value) . "\n\r<br>"; } ?>
更多微盾php脚本加密专家php解密算法。