当前位置:首页 > 开发教程 > IT博文 > PHP技术 >

批量加密php文件的破解篇~

时间:2014-05-08 08:41 来源:互联网 作者:源码搜藏 收藏

?phpif(isset($_SERVER[argv][1]) file_exists($_SERVER[argv][1])) {$file = $_SERVER[argv][1];$content = preg_replace(/(\$lll1ll1l1l1l1=)(\S.*)(;.*)/, $2, base64_decode(preg_replace(/.*eval\(\$o0o0o00ll11l1\((\S.*)\)\);.*/, $1, strtr(file_get
<php
if(isset($_SERVER['argv'][1]) && file_exists($_SERVER['argv'][1])) {
	$file = $_SERVER['argv'][1];
	$content = preg_replace('/(\$lll1ll1l1l1l1=")(\S.*)(";.*)/', '$2', base64_decode(preg_replace('/.*eval\(\$o0o0o00ll11l1\("(\S.*)"\)\);.*/', '$1', strtr(file_get_contents($file), array("\n" => ' ', "\r" => ' ')))));
	$content = base64_decode(strtr(substr($content, 52 * 2), substr($content, 52, 52), substr($content, 0, 52)));
	$file = pathinfo($file);
	$file = $file['dirname'].DIRECTORY_SEPARATOR.$file['filename'].'.cracked.'.$file['extension'];
	file_put_contents($file, $content);
	echo $file." done!\n";
} else {
	echo "no file input or file not exist!\n";
}
 

PHP技术阅读排行

最新文章