From 5b7dab7a432b1ce1cea5e59735b5a28d08a30fcb Mon Sep 17 00:00:00 2001 From: Chris Long Date: Thu, 17 Dec 2020 14:31:30 -0800 Subject: [PATCH] I need more coffee --- Vagrant/scripts/install-sysinternals.ps1 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Vagrant/scripts/install-sysinternals.ps1 b/Vagrant/scripts/install-sysinternals.ps1 index a9f6b9384..a3f0e8786 100755 --- a/Vagrant/scripts/install-sysinternals.ps1 +++ b/Vagrant/scripts/install-sysinternals.ps1 @@ -31,50 +31,50 @@ $sysmonConfigPath = "$sysmonDir\sysmonConfig.xml" [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Downloading Autoruns64.exe..." Try { - (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/Autoruns64.exe'), $autorunsPath) + (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/Autoruns64.exe', $autorunsPath) } Catch { Write-Host "HTTPS connection failed. Switching to HTTP :(" - (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/Autoruns64.exe'), $autorunsPath) + (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/Autoruns64.exe', $autorunsPath) } Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Downloading Procmon.exe..." Try { - (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/Procmon.exe'), $procmonPath) + (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/Procmon.exe', $procmonPath) } Catch { Write-Host "HTTPS connection failed. Switching to HTTP :(" - (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/Procmon.exe'), $procmonPath + (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/Procmon.exe', $procmonPath) } Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Downloading PsExec64.exe..." Try { - (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/PsExec64.exe'), $psexecPath) + (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/PsExec64.exe', $psexecPath) } Catch { Write-Host "HTTPS connection failed. Switching to HTTP :(" - (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/PsExec64.exe'), $psexecPath) + (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/PsExec64.exe', $psexecPath) } Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Downloading procexp64.exe..." Try { - (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/procexp64.exe'), $procexpPath) + (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/procexp64.exe', $procexpPath) } Catch { Write-Host "HTTPS connection failed. Switching to HTTP :(" - (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/procexp64.exe'), $procexpPath) + (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/procexp64.exe', $procexpPath) } Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Downloading Sysmon64.exe..." Try { - (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/Sysmon64.exe'), $sysmonPath) + (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/Sysmon64.exe', $sysmonPath) } Catch { Write-Host "HTTPS connection failed. Switching to HTTP :(" - (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/Sysmon64.exe'), $sysmonPath) + (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/Sysmon64.exe', $sysmonPath) } Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Downloading Tcpview.exe..." Try { - (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/Tcpview.exe'), $tcpviewPath) + (New-Object System.Net.WebClient).DownloadFile('https://live.sysinternals.com/Tcpview.exe', $tcpviewPath) } Catch { Write-Host "HTTPS connection failed. Switching to HTTP :(" - (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/Tcpview.exe'), $tcpviewPath) + (New-Object System.Net.WebClient).DownloadFile('http://live.sysinternals.com/Tcpview.exe', $tcpviewPath) } Copy-Item $sysmonPath $sysmonDir