File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Determining latest release of Velocir
18
18
[Net.ServicePointManager ]::SecurityProtocol = [Net.SecurityProtocolType ]::Tls12
19
19
# Disabling the progress bar speeds up IWR https://github.com/PowerShell/PowerShell/issues/2138
20
20
$ProgressPreference = ' SilentlyContinue'
21
- $velociraptorDownloadUrl = " https://github.com" + ((Invoke-WebRequest " https://github.com/Velocidex/velociraptor/releases" - UseBasicParsing).links | Select-Object - ExpandProperty href | Select-String " windows-amd64.msi$" | Select-Object - First 1 )
21
+ # Fix issue #869: Problem is that link to windows msi is hidden behind toogle item and not accesible, therefore get link for linux and replace with windows link
22
+ $velociraptorDownloadUrlLinux = " https://github.com" + ((Invoke-WebRequest " https://github.com/Velocidex/velociraptor/releases" - UseBasicParsing).links | Select-Object - ExpandProperty href | Select-String " linux-amd64$" | Select-Object - First 1 )
23
+ $velociraptorDownloadUrl = $velociraptorDownloadUrlLinux.replace (" linux-amd64" , " windows-amd64.msi" )
24
+ Write-Host " Downloading Velociraptor from $velociraptorDownloadUrl "
22
25
$velociraptorMSIPath = ' C:\Users\vagrant\AppData\Local\Temp\velociraptor.msi'
23
26
$velociraptorLogFile = ' c:\Users\vagrant\AppData\Local\Temp\velociraptor_install.log'
24
27
If (-not (Test-Path $velociraptorLogFile ) -or ($Update -eq $true )) {
You can’t perform that action at this time.
0 commit comments