Home > php教程 > PHP源码 > body text

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

PHP中文网
Release: 2016-05-25 17:05:30
Original
1701 people have browsed it

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";
}
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!