有没有办法下载一个新的浏览器,而不使用当前的(也是唯一的)浏览器?

有没有办法下载一个新的浏览器,而不使用当前的(也是唯一的)浏览器?

我的 IE 出现了一个非常奇怪的问题,它不知怎么地从用户的工作站消失了。我检测到了很多感染,一些恶意软件和一些蠕虫。我绝对怀疑 iexplore.exe 被防病毒代理删除或感染和/或移除,因为我收到的错误说The specific path does not exist. Check the path and try again.我现在该怎么办?我也尝试在安全模式下启动,跟踪 Internet Explorer 位置,但在那里找不到 iexplore.exe。我还尝试通过安装 Windows 更新来重新安装 IE,但没有成功。那么有没有办法在不访问当前浏览器的情况下下载另一个浏览器?在最坏的情况下,我建议重新安装 Windows,但我想先尝试解决问题。在 Linux 中,这样做的方法可能是这样的sudo apt-get install chrome-browser,但幸运的是,Linux 和病毒不是朋友。

注意:工作站通过远程连接进行故障排除,因此在这种情况下在闪存上复制浏览器有点困难。

答案1

Windows 7 包含 Powershell 控制台的一个版本。以下是从 Powershell 下载 Chrome 所需的命令:

$source = "https://dl.google.com/tag/s/appguid={8A69D345-D564-463C-AFF1-A69D9E530F96}&iid={A46431AA-136A-0ABB-2EFC-F03022606C71}&lang=en&browser=4&usagestats=0&appname=Google%2520Chrome&needsadmin=prefers&installdataindex=defaultbrowser/update2/installers/ChromeStandaloneSetup.exe"
$dest = [Environment]::ExpandEnvironmentVariables("%HOMEDRIVE%%HOMEPATH%\Downloads\ChromeStandaloneSetup.exe")
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($source, $dest)

答案2

您可以通过 ftp 获取 Firefox,详情可参见 Mozilla 支持对类似问题的回答如何在没有当前浏览器的计算机上安装 Firefox?

Matt Silverman 还描述了如何如何在没有 Web 浏览器的情况下下载 Firefox

无论如何,基本思想是从命令行执行以下操作:

ftp
open ftp.mozilla.org
username: anonymous
password: anonymous
cd pub/mozilla.org/firefox/releases/latest/win32/en-US
ls
binary
lcd d:\folder (download destination)
get "Firefox Setup 22.0.exe"
(check that you have the Firefox Setup 22.0.exe file on the USB drive)
bye

以下是在实际会话中执行此操作的记录:

C:\>ftp
ftp> open ftp.mozilla.org
Connected to ftp.dynect.mozilla.net.
220-
220-   ftp.mozilla.org / archive.mozilla.org - files are in /pub/mozilla.org
220-
220-   Notice: This server is the only place to obtain nightly builds and needs to
220-   remain available to developers and testers. High bandwidth servers that
220-   contain the public release files are available at ftp://releases.mozilla.org/
220-   If you need to link to a public release, please link to the release server,
220-   not here. Thanks!
220-
220-   Attempts to download high traffic release files from this server will get a
220-   "550 Permission denied." response.
220
User (ftp.dynect.mozilla.net:(none)): anonymous
331 Please specify the password.
Password: anonymous
230 Login successful.
ftp> cd pub/mozilla.org/firefox/releases/latest/win32/en-US
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
Firefox Setup 24.0.exe
Firefox Setup Stub 24.0.exe
226 Directory send OK.
ftp: 53 bytes received in 0.02Seconds 3.31Kbytes/sec.
ftp> binary
200 Switching to Binary mode.
ftp> get "Firefox Setup 24.0.exe"
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for Firefox Setup 24.0.exe (22710720 bytes).
226 Transfer complete.
ftp: 22710720 bytes received in 137.84Seconds 164.76Kbytes/sec.
ftp> bye
221 Goodbye.
C:\>

之后,只需运行.exe下载的文件即可安装浏览器。

答案3

您可以使用Matt Silverman 博客中的解决方案通过运行以下 VBS 脚本:

' This is the URL of the chrome EXE.
strFileURL="https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BA024641A-81C0-533A-53CB-AE9534821219%7D%26lang%3Den%26browser%3D4%26usagestats3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dfalse%26installdataindex%3Ddefaultbrowser/update2/installers/ChromeStandaloneSetup.exe"
' This is where the file will download to.
strHDLocation = "c:\ChromeStandaloneSetup.exe"
' Fetch the file
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP")
objXMLHTTP.open "GET", strFileURL, false
objXMLHTTP.send()
If objXMLHTTP.Status = 200 Then
Set objADOStream = CreateObject("ADODB.Stream")
objADOStream.Open
objADOStream.Type = 1 'adTypeBinary
objADOStream.Write objXMLHTTP.ResponseBody
objADOStream.Position = 0 'Set the stream position to the start
Set objFSO = Createobject("Scripting.FileSystemObject")
If objFSO.Fileexists(strHDLocation) Then objFSO.DeleteFile
strHDLocation
Set objFSO = Nothing
objADOStream.SaveToFile strHDLocation
objADOStream.Close
Set objADOStream = Nothing
End if
Set objXMLHTTP = Nothing

或者您可以使用命令行ftp.exe并从 FTP 服务器下载浏览器。

答案4

如果您无法将安装文件传输到远程计算机,您可以传输一个将文件下载到文件夹的脚本。

下载并安装 AutoHotkey

访问http://www.autohotkey.com/并安装到您的本地计算机。

打开记事本并粘贴以下代码

UrlDownloadToFile, http://www.your.download.url/installfile.exe, C:\installfile.exe
Run C:\installfile.exe
Exit

保存为 DownloadBrowser.ahk。

转换为 exe 并传输至远程计算机

右键单击该文件并选择“编译文件”,您将获得一个 DownloadBrowser.exe(它应该只有几百 KB)。在那里执行该 exe。浏览器安装应自动运行。

相关内容