From 87eff2b6b8fb4a71d86a62f033e8c040a22e3003 Mon Sep 17 00:00:00 2001 From: pratinavchandra Date: Wed, 3 Apr 2024 01:04:06 -0400 Subject: [PATCH] Added new atomic test: Update T1105.yaml (#2734) * Added new atomic test: Update T1105.yaml * Update T1105.yaml --- atomics/T1105/T1105.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/atomics/T1105/T1105.yaml b/atomics/T1105/T1105.yaml index eb561c9c..4413b979 100644 --- a/atomics/T1105/T1105.yaml +++ b/atomics/T1105/T1105.yaml @@ -872,3 +872,24 @@ atomic_tests: cleanup_command: rmdir /s /q "C:\Temp\Sample" >nul 2>nul name: command_prompt elevation_required: true +- name: File download via nscurl + description: | + Use nscurl to download and write a file/payload from the internet. + -k = Disable certificate checking + -o = Output destination + supported_platforms: + - macos + input_arguments: + remote_file: + description: URL of remote file to download + type: url + default: https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt + destination_path: + description: Local path to place remote file + type: path + default: license.txt + executor: + command: nscurl -k "#{remote_file}" -o "#{destination_path}" + cleanup_command: rm "#{destination_path}" + name: sh + elevation_required: false