From c81858120bdcef3c034bdc5f23ff336df8f176aa Mon Sep 17 00:00:00 2001 From: CircleCI Atomic Red Team doc generator Date: Mon, 7 Mar 2022 16:39:15 +0000 Subject: [PATCH] Generate docs from job=generate_and_commit_guids_and_docs branch=master [skip ci] --- atomics/Indexes/index.yaml | 7 ++----- atomics/T1059.005/T1059.005.md | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/atomics/Indexes/index.yaml b/atomics/Indexes/index.yaml index 3f4028e3..d12ebc5f 100644 --- a/atomics/Indexes/index.yaml +++ b/atomics/Indexes/index.yaml @@ -66538,14 +66538,11 @@ execution: - description: Sample script must exist on disk at specified location (#{vbscript}) prereq_command: 'if (Test-Path #{vbscript}) {exit 0} else {exit 1} ' get_prereq_command: |- - Invoke-WebRequest "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.005/src/sys_info.vbs" -OutFile "$env:TEMP\sys_info.vbs" New-Item -ItemType Directory (Split-Path #{vbscript}) -Force | Out-Null - Copy-Item $env:TEMP\sys_info.vbs #{vbscript} -Force + Invoke-WebRequest "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.005/src/sys_info.vbs" -OutFile "#{vbscript}" executor: command: 'cscript #{vbscript} > $env:TEMP\T1059.005.out.txt' - cleanup_command: |- - Remove-Item $env:TEMP\sys_info.vbs -ErrorAction Ignore - Remove-Item $env:TEMP\T1059.005.out.txt -ErrorAction Ignore + cleanup_command: Remove-Item $env:TEMP\T1059.005.out.txt -ErrorAction Ignore name: powershell - name: Encoded VBS code execution auto_generated_guid: e8209d5f-e42d-45e6-9c2f-633ac4f1eefa diff --git a/atomics/T1059.005/T1059.005.md b/atomics/T1059.005/T1059.005.md index d81a0599..e69abb22 100644 --- a/atomics/T1059.005/T1059.005.md +++ b/atomics/T1059.005/T1059.005.md @@ -46,7 +46,6 @@ cscript #{vbscript} > $env:TEMP\T1059.005.out.txt #### Cleanup Commands: ```powershell -Remove-Item $env:TEMP\sys_info.vbs -ErrorAction Ignore Remove-Item $env:TEMP\T1059.005.out.txt -ErrorAction Ignore ``` @@ -60,9 +59,8 @@ if (Test-Path #{vbscript}) {exit 0} else {exit 1} ``` ##### Get Prereq Commands: ```powershell -Invoke-WebRequest "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.005/src/sys_info.vbs" -OutFile "$env:TEMP\sys_info.vbs" New-Item -ItemType Directory (Split-Path #{vbscript}) -Force | Out-Null -Copy-Item $env:TEMP\sys_info.vbs #{vbscript} -Force +Invoke-WebRequest "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.005/src/sys_info.vbs" -OutFile "#{vbscript}" ```