龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

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

时间:2014-07-22 14:49来源: 作者: 点击:
分享到:
看到 osc 的一片文章: [批量加密php文件,无需第三方插件](http://www.oschina.net/code/snippet_211321_21526),感觉有点意思,就写了个破解程序,共享一下,大家来指摘~
看到 osc 的一片文章: [批量加密php文件,无需第三方插件](http://www.oschina.net/code/snippet_211321_21526),感觉有点意思,就写了个破解程序,共享一下,大家来指摘~
<?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";
}

精彩图集

赞助商链接