From be5895136114fe0ad502b3f690b8a333ed296e4d Mon Sep 17 00:00:00 2001 From: frack113 <62423083+frack113@users.noreply.github.com> Date: Mon, 31 Jan 2022 17:51:40 +0100 Subject: [PATCH] T1550.002 fix test 2 (#1747) * fix test 2 * fix crackmapexec --- atomics/T1550.002/T1550.002.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atomics/T1550.002/T1550.002.yaml b/atomics/T1550.002/T1550.002.yaml index 8df1f003..6cafb023 100644 --- a/atomics/T1550.002/T1550.002.yaml +++ b/atomics/T1550.002/T1550.002.yaml @@ -75,10 +75,10 @@ atomic_tests: - description: | CrackMapExec executor must exist on disk at specified location (#{crackmapexec_exe}) prereq_command: | - if(Test-Path #{crackmapexec_exe}) { 0 } else { -1 } + if(Test-Path #{crackmapexec_exe}) {exit 0} else {exit 1} get_prereq_command: | Write-Host Automated installer not implemented yet, please install crackmapexec manually at this location: #{crackmapexec_exe} executor: command: | - crackmapexec #{domain} -u #{user_name} -H #{ntlm} -x #{command} + #{crackmapexec_exe} #{domain} -u #{user_name} -H #{ntlm} -x #{command} name: command_prompt