From 18e70fc5a50ed28f54966f1eb1ac4eaac27f1b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Notin?= Date: Thu, 25 Jun 2020 23:47:00 +0200 Subject: [PATCH] T1569.002: fix psexec prereq install (#1043) Create folder for psexec_exe Co-authored-by: Carrie Roberts --- atomics/T1035/T1035.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/atomics/T1035/T1035.yaml b/atomics/T1035/T1035.yaml index 7d9e9e79d78..f27c0ce033d 100644 --- a/atomics/T1035/T1035.yaml +++ b/atomics/T1035/T1035.yaml @@ -51,15 +51,15 @@ atomic_tests: default: localhost dependencies: - - description: | - PsExec tool from Sysinternals must exist on disk at specified location (#{psexec_exe}) - prereq_command: | - if (Test-Path "#{psexec_exe}") { exit 0} else { exit 1} - get_prereq_command: | - Invoke-WebRequest "https://download.sysinternals.com/files/PSTools.zip" -OutFile "$env:TEMP\PsTools.zip" - Expand-Archive $env:TEMP\PsTools.zip $env:TEMP\PsTools -Force - Copy-Item $env:TEMP\PsTools\PsExec.exe "#{psexec_exe}" -Force - + - description: | + PsExec tool from Sysinternals must exist on disk at specified location (#{psexec_exe}) + prereq_command: | + if (Test-Path "#{psexec_exe}") { exit 0} else { exit 1} + get_prereq_command: | + Invoke-WebRequest "https://download.sysinternals.com/files/PSTools.zip" -OutFile "$env:TEMP\PsTools.zip" + Expand-Archive $env:TEMP\PsTools.zip $env:TEMP\PsTools -Force + New-Item -ItemType Directory (Split-Path "#{psexec_exe}") -Force | Out-Null + Copy-Item $env:TEMP\PsTools\PsExec.exe "#{psexec_exe}" -Force executor: name: powershell elevation_required: false