From 1611d8fd0715a2056eb5e08d016bc4732e4026aa Mon Sep 17 00:00:00 2001 From: Scoubi Date: Tue, 14 Jul 2020 10:35:30 -0400 Subject: [PATCH] Update T1027.yaml (#1118) Add a line to include/force TLS1.2 in order for the prereq function to work on win2k16 All the credit to clr2of8 for sending me the string --- atomics/T1027/T1027.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/atomics/T1027/T1027.yaml b/atomics/T1027/T1027.yaml index 6c63a3a8..26e65557 100644 --- a/atomics/T1027/T1027.yaml +++ b/atomics/T1027/T1027.yaml @@ -93,6 +93,7 @@ atomic_tests: prereq_command: | if (Test-Path #{exe_payload}) {exit 0} else {exit 1} get_prereq_command: | + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Invoke-WebRequest "#{url_path}" -OutFile "$env:temp\T1027.zip" Expand-Archive -path "$env:temp\T1027.zip" -DestinationPath "$env:temp\temp_T1027.zip\" -Force executor: