From aa7cf93be50c43d9912a6253613f6897726c64d9 Mon Sep 17 00:00:00 2001 From: Zitni Handoo <57437797+ZitniH@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:27:57 +1100 Subject: [PATCH] Fix T1071.001 Test 2 Test #2 for T1071.001 is currently not working properly, since the pre-requisite command is incorrect. This change is to fix the md and yaml files to update the URL for curl --- atomics/T1071.001/T1071.001.md | 4 ++-- atomics/T1071.001/T1071.001.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/atomics/T1071.001/T1071.001.md b/atomics/T1071.001/T1071.001.md index 0782d04c9c..b527d24eed 100644 --- a/atomics/T1071.001/T1071.001.md +++ b/atomics/T1071.001/T1071.001.md @@ -98,9 +98,9 @@ if (Test-Path #{curl_path}) {exit 0} else {exit 1} ##### Get Prereq Commands: ```powershell New-Item -Type Directory "PathToAtomicsFolder\..\ExternalPayloads\" -ErrorAction Ignore -Force | Out-Null -Invoke-WebRequest "https://curl.haxx.se/windows/dl-7.71.1/curl-7.71.1-win32-mingw.zip" -Outfile "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" +Invoke-WebRequest "https://curl.se/windows/dl-8.6.0_2/curl-8.6.0_2-win32-mingw.zip" -Outfile "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" Expand-Archive -Path "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" -DestinationPath "PathToAtomicsFolder\..\ExternalPayloads\curl" -Copy-Item "PathToAtomicsFolder\..\ExternalPayloads\curl\curl-7.71.1-win32-mingw\bin\curl.exe" #{curl_path} +Copy-Item "PathToAtomicsFolder\..\ExternalPayloads\curl\curl-8.6.0_2-win32-mingw\bin\curl.exe" #{curl_path} Remove-Item "PathToAtomicsFolder\..\ExternalPayloads\curl" Remove-Item "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" ``` diff --git a/atomics/T1071.001/T1071.001.yaml b/atomics/T1071.001/T1071.001.yaml index 18b231a120..b6948b2ff1 100644 --- a/atomics/T1071.001/T1071.001.yaml +++ b/atomics/T1071.001/T1071.001.yaml @@ -48,9 +48,9 @@ atomic_tests: if (Test-Path #{curl_path}) {exit 0} else {exit 1} get_prereq_command: | New-Item -Type Directory "PathToAtomicsFolder\..\ExternalPayloads\" -ErrorAction Ignore -Force | Out-Null - Invoke-WebRequest "https://curl.haxx.se/windows/dl-7.71.1/curl-7.71.1-win32-mingw.zip" -Outfile "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" + Invoke-WebRequest "https://curl.se/windows/dl-8.6.0_2/curl-8.6.0_2-win32-mingw.zip" -Outfile "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" Expand-Archive -Path "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" -DestinationPath "PathToAtomicsFolder\..\ExternalPayloads\curl" - Copy-Item "PathToAtomicsFolder\..\ExternalPayloads\curl\curl-7.71.1-win32-mingw\bin\curl.exe" #{curl_path} + Copy-Item "PathToAtomicsFolder\..\ExternalPayloads\curl\curl-8.6.0_2-win32-mingw\bin\curl.exe" #{curl_path} Remove-Item "PathToAtomicsFolder\..\ExternalPayloads\curl" Remove-Item "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" executor: