From 9085136f1748c295454cfa6c970d00258f7e0f4d Mon Sep 17 00:00:00 2001 From: Chris Long Date: Sun, 2 Aug 2020 15:26:52 -0700 Subject: [PATCH] Insert hardcoded Velociraptor URL Workaround for issue #497 --- Vagrant/scripts/install-velociraptor.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Vagrant/scripts/install-velociraptor.ps1 b/Vagrant/scripts/install-velociraptor.ps1 index 2e71b76..43a6740 100644 --- a/Vagrant/scripts/install-velociraptor.ps1 +++ b/Vagrant/scripts/install-velociraptor.ps1 @@ -13,7 +13,9 @@ Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Determining latest release of Velocir # GitHub requires TLS 1.2 as of 2/27 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $tag = (Invoke-WebRequest "https://api.github.com/repos/Velocidex/velociraptor/releases" -UseBasicParsing | ConvertFrom-Json)[0].tag_name -$velociraptorDownloadUrl = "https://github.com/Velocidex/velociraptor/releases/download/$tag/velociraptor-$tag-windows-amd64.msi" +# Workaround hardcoded URL until this issue gets fixed: https://github.com/Velocidex/velociraptor/issues/528 +$velociraptorDownloadUrl = "https://github.com/Velocidex/velociraptor/releases/download/v0.4.7/velociraptor-v0.4.7-1-windows-amd64.msi" +#$velociraptorDownloadUrl = "https://github.com/Velocidex/velociraptor/releases/download/$tag/velociraptor-$tag-windows-amd64.msi" $velociraptorMSIPath = 'C:\Users\vagrant\AppData\Local\Temp\velociraptor.msi' $velociraptorLogFile = 'c:\Users\vagrant\AppData\Local\Temp\velociraptor_install.log' If (-not (Test-Path $velociraptorLogFile)) {