一脚踢开恶意网站(附脚本)

      Tech 2005-4-11 17:42
删除此键:HKEY_CLASSES_ROOT\CLSID\{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}
一劳永逸,让恶意网站滚蛋!
可将以下脚本加入域策略登录执行(仅对win2K):




Const HKCR=&H80000000
sPath="CLSID\{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}"
Set objRegistry = GetObject("winmgmts:\\.\root\default:StdRegProv")
call subEnumkey(sPath)



sub subEnumKey(sPath)
asPath=sPath
objRegistry.EnumKey HKCR,asPath,subSubkeys
if not isNull(subSubkeys) then
for each subSubSubkeys in subSubkeys
bsPath=asPath & "\" & subSubSubkeys
call subEnumKey(bsPath)
next
objRegistry.DeleteKey HKCR,asPath
else
objRegistry.DeleteKey HKCR,asPath
end if
end sub
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}