<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[威盾PHP加密专家解密算法]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Wed, 14 Mar 2018 02:34:52 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/>&lt;?php <br/>/*********************************** <br/>*威盾PHP加密专家解密算法 By：Neeao <br/>*http://Neeao.com <br/>*2009-09-10 <br/>***********************************/ <br/> <br/>$filename=&quot;logincheck-hou.php&quot;;//要解密的文件 <br/>$lines = file($filename);//0,1,2行 <br/><br/>//第一次base64解密 <br/>$content=&quot;&quot;; <br/>if(preg_match(&quot;/O0O0000O0&#92;(&#039;.*&#039;&#92;)/&quot;,$lines&#91;1&#93;,$y)) <br/>&#123; <br/>&nbsp;&nbsp;&nbsp;&nbsp;$content=str_replace(&quot;O0O0000O0(&#039;&quot;,&quot;&quot;,$y&#91;0&#93;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;$content=str_replace(&quot;&#039;)&quot;,&quot;&quot;,$content); <br/>&nbsp;&nbsp;&nbsp;&nbsp;$content=base64_decode($content); <br/>&#125; <br/><br/><br/>//第一次base64解密后的内容中查找密钥 <br/>$decode_key=&quot;&quot;; <br/>if(preg_match(&quot;/&#92;),&#039;.*&#039;,/&quot;,$content,$k)) <br/>&#123; <br/>&nbsp;&nbsp;&nbsp;&nbsp;$decode_key=str_replace(&quot;),&#039;&quot;,&quot;&quot;,$k&#91;0&#93;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;$decode_key=str_replace(&quot;&#039;,&quot;,&quot;&quot;,$decode_key); <br/>&#125; <br/> <br/>//查找要截取字符串长度 <br/>$str_length=&quot;&quot;; <br/>if(preg_match(&quot;/,&#92;d*&#92;),/&quot;,$content,$k)) <br/>&#123; <br/>&nbsp;&nbsp;&nbsp;&nbsp;$str_length=str_replace(&quot;),&quot;,&quot;&quot;,$k&#91;0&#93;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;$str_length=str_replace(&quot;,&quot;,&quot;&quot;,$str_length); <br/>&#125; <br/>//截取文件加密后的密文 <br/>$Secret=substr($lines&#91;2&#93;,$str_length); <br/>//echo $Secret; <br/> <br/>//直接还原密文输出 <br/>/*echo &quot;&lt;?php&#92;n&quot;.base64_decode(strtr($Secret,$decode_key,&#039;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&#039;)).&quot;?&gt;&quot;; <br/> */<br/> <br/>file_put_contents(&quot;test.php&quot;, &quot;&lt;?php&#92;n&quot;.base64_decode(strtr($Secret,$decode_key,&#039;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&#039;)).&quot;?&gt;&quot; );<br/> <br/>?&gt; <br/></div>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] 威盾PHP加密专家解密算法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>