批量解密dezend程序 By phpsir
Jul 2nd, 2008 by phpsir
今天写了个批量dezend(或者说叫解密)的脚本
代码如下:
$dir = “in”;
$dezendphp = “app\dezend_by_phpsir”;
$mkdir = “mkdir out” .$dir;
echo $mkdir .”n”;
@exec($mkdir);
$dir = $dir. “\”;
$debug = false;
// Open a known directory, and proceed to read its contents
function rdir($dir){
global $debug ;
global $dezendphp ;
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
$outdir = “out”.$dir;
if ($file != “.” && $file != “..”) {
if (is_dir($dir .”\”. $file))
{
$mkdir = “mkdir “. $outdir . “\” . $file;
echo $mkdir .”n”;
$debug ? ‘’ :exec($mkdir);
rdir($dir .”\”. $file);
}else{
if (substr($file,-4) == “.php” && iszend($dir .”\”. $file)) {
$fp=”$dezendphp “. $dir .”\”. $file . ” /path:$outdir /ext:.php /tab /indent:1″;
echo $fp.”n”;
$debug ? ‘’ : exec($fp);
}else{
$cpcmd = “copy ” . $dir .”\” . $file . ” $outdir”;
echo $cpcmd.”n”;
$debug ? ‘’ : exec($cpcmd);
}
}
}
}
closedir($dh);
}
}
function iszend($f)
{
$file = file_get_contents($f);
if (!strstr($file,”Zendx00″) and !strstr($file,”Zendx3B”))
return false;
else
return true;
}
rdir ($dir);
?>
并且做了一定的封装
bat 如下
C:phpsirappphp5oriphp.exe -c C:phpsirappphp5ori -f phpsirdezend.php
原始的php5文件放在 c:phpsirappphp5ori 目录
整个文件大小 8,000,046 bytes
下载并解压缩到 c:phpsir 目录就可以使用了
将需要解密dezend的文件放到 in 目录,运行start_dezned.bat 就可以到outin 目录里面捡解密后的结果了
由于没有足够带宽支撑,所以不放出链接地址,需要的联系QQ 733905