From 5b7eb3fe8beebd659fa3fc0de9cc73e8c130bc17 Mon Sep 17 00:00:00 2001 From: frack113 <62423083+frack113@users.noreply.github.com> Date: Mon, 26 Sep 2022 19:58:46 +0200 Subject: [PATCH] Fix download dependencies (#2165) Co-authored-by: Carrie Roberts --- atomics/T1219/T1219.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/atomics/T1219/T1219.yaml b/atomics/T1219/T1219.yaml index bf78d13d..471474cc 100644 --- a/atomics/T1219/T1219.yaml +++ b/atomics/T1219/T1219.yaml @@ -160,7 +160,7 @@ atomic_tests: NetSupport_Path: description: Path to the NetSupport executable. type: Path - default: $env:temp\T1219Setup.exe + default: $env:temp\T1219_NetSupport.exe dependency_executor_name: powershell dependencies: - description: | @@ -168,7 +168,7 @@ atomic_tests: prereq_command: | if (Test-Path #{NetSupport_Path}) {exit 0} else {exit 1} get_prereq_command: | - Invoke-WebRequest "https://nsproducts.azureedge.net/nsm-1270/en/Setup.exe" -OutFile "$env:temp\T1219Setup.exe" -UseBasicParsing + (New-Object Net.WebClient).DownloadFile("https://nsproducts.azureedge.net/nsm-1270/en/Setup.exe","#{NetSupport_Path}") executor: command: | Start-Process #{NetSupport_Path} -ArgumentList "/S /v/qn" @@ -186,7 +186,7 @@ atomic_tests: UltraViewer_Path: description: Path to the UltraViewer executable. type: Path - default: $env:temp\T1219Setup.exe + default: $env:temp\T1219_UltraViewer.exe dependency_executor_name: powershell dependencies: - description: | @@ -194,7 +194,7 @@ atomic_tests: prereq_command: | if (Test-Path #{UltraViewer_Path}) {exit 0} else {exit 1} get_prereq_command: | - Invoke-WebRequest -OutFile #{UltraViewer_Path} https://www.ultraviewer.net/en/UltraViewer_setup_6.5_en.exe + (New-Object Net.WebClient).DownloadFile("https://www.ultraviewer.net/en/UltraViewer_setup_6.5_en.exe","#{UltraViewer_Path}") executor: command: | Start-Process -Wait -FilePath "#{UltraViewer_Path}" -Argument "/silent" -PassThru