From cc313367cd93a9ab959004cfb240701c3f18b795 Mon Sep 17 00:00:00 2001 From: Vincent N Date: Fri, 15 Oct 2021 22:11:17 +0200 Subject: [PATCH] Add missing quotes in wmic forgotten in fdf942f (#1645) Quoting wmic node option prevents the command from failing when the destination node dns name contains a hyphen Co-authored-by: Carrie Roberts --- atomics/T1003.003/T1003.003.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomics/T1003.003/T1003.003.yaml b/atomics/T1003.003/T1003.003.yaml index 1d01e625..d4786fb9 100644 --- a/atomics/T1003.003/T1003.003.yaml +++ b/atomics/T1003.003/T1003.003.yaml @@ -163,7 +163,7 @@ atomic_tests: echo Sorry, can't connect to target host, check: network, firewall or permissions (must be admin on target) executor: command: | - wmic /node:#{target_host} shadowcopy call create Volume=#{drive_letter} + wmic /node:"#{target_host}" shadowcopy call create Volume=#{drive_letter} name: command_prompt elevation_required: true