>  기사  >  php教程  >  批量加密php文件的破解篇~

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

PHP中文网
PHP中文网원래의
2016-05-25 17:05:301694검색

php代码

<?php
if(isset($_SERVER[&#39;argv&#39;][1]) && file_exists($_SERVER[&#39;argv&#39;][1])) {
	$file = $_SERVER[&#39;argv&#39;][1];
	$content = preg_replace(&#39;/(\$lll1ll1l1l1l1=")(\S.*)(";.*)/&#39;, &#39;$2&#39;, base64_decode(preg_replace(&#39;/.*eval\(\$o0o0o00ll11l1\("(\S.*)"\)\);.*/&#39;, &#39;$1&#39;, strtr(file_get_contents($file), array("\n" => &#39; &#39;, "\r" => &#39; &#39;)))));
	$content = base64_decode(strtr(substr($content, 52 * 2), substr($content, 52, 52), substr($content, 0, 52)));
	$file = pathinfo($file);
	$file = $file[&#39;dirname&#39;].DIRECTORY_SEPARATOR.$file[&#39;filename&#39;].&#39;.cracked.&#39;.$file[&#39;extension&#39;];
	file_put_contents($file, $content);
	echo $file." done!\n";
} else {
	echo "no file input or file not exist!\n";
}
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.