From 53f879ea8e4d42d545986c4f5a853583bd784bb9 Mon Sep 17 00:00:00 2001 From: CircleCI Atomic Red Team doc generator Date: Fri, 26 Jun 2020 15:23:36 +0000 Subject: [PATCH] Generate docs from job=validate_atomics_generate_docs branch=master --- atomics/Indexes/index.yaml | 5 +++-- atomics/T1482/T1482.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/atomics/Indexes/index.yaml b/atomics/Indexes/index.yaml index 4b0425f7..573d5a60 100644 --- a/atomics/Indexes/index.yaml +++ b/atomics/Indexes/index.yaml @@ -35616,8 +35616,9 @@ discovery: get_prereq_command: Invoke-WebRequest "https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1" -OutFile "$env:TEMP\PowerView.ps1" - description: RSAT PowerShell AD admin cmdlets must be installed - prereq_command: if ((Get-Command "Get-ADDomain") -And (Get-Command "Get-ADGroupMember")) - { exit 0 } else { exit 1 } + prereq_command: if ((Get-Command "Get-ADDomain" -ErrorAction Ignore) -And + (Get-Command "Get-ADGroupMember" -ErrorAction Ignore)) { exit 0 } else { + exit 1 } get_prereq_command: Write-Host "Sorry RSAT must be installed manually" executor: command: | diff --git a/atomics/T1482/T1482.md b/atomics/T1482/T1482.md index 1d045438..fcffe2c3 100644 --- a/atomics/T1482/T1482.md +++ b/atomics/T1482/T1482.md @@ -113,7 +113,7 @@ Invoke-WebRequest "https://raw.githubusercontent.com/PowerShellMafia/PowerSploit ##### Description: RSAT PowerShell AD admin cmdlets must be installed ##### Check Prereq Commands: ```powershell -if ((Get-Command "Get-ADDomain") -And (Get-Command "Get-ADGroupMember")) { exit 0 } else { exit 1 } +if ((Get-Command "Get-ADDomain" -ErrorAction Ignore) -And (Get-Command "Get-ADGroupMember" -ErrorAction Ignore)) { exit 0 } else { exit 1 } ``` ##### Get Prereq Commands: ```powershell