From aedffd8f657f6d25222ac6359dce1c9e9ae154a5 Mon Sep 17 00:00:00 2001 From: Scoubi Date: Tue, 14 Jul 2020 10:49:37 -0400 Subject: [PATCH] Update T1095.yaml (#1119) 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 Co-authored-by: Carrie Roberts --- atomics/T1095/T1095.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/atomics/T1095/T1095.yaml b/atomics/T1095/T1095.yaml index 0fbadd05..ea46ad5f 100644 --- a/atomics/T1095/T1095.yaml +++ b/atomics/T1095/T1095.yaml @@ -50,6 +50,7 @@ atomic_tests: prereq_command: | if( Test-Path "#{ncat_exe}") {exit 0} else {exit 1} get_prereq_command: | + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 New-Item -ItemType Directory -Force -Path #{ncat_path} | Out-Null $parentpath = Split-Path (Split-Path "#{ncat_exe}"); $zippath = "$parentpath\nmap.zip" Invoke-WebRequest "https://nmap.org/dist/nmap-7.80-win32.zip" -OutFile "$zippath"