From e460fe7bd4420a013ed18ef55ab8672e81e01683 Mon Sep 17 00:00:00 2001 From: CircleCI Atomic Red Team doc generator Date: Thu, 15 Apr 2021 22:53:22 +0000 Subject: [PATCH] Generate docs from job=generate_and_commit_guids_and_docs branch=master [skip ci] --- atomics/Indexes/index.yaml | 30 ++++++++++++++++-------------- atomics/T1133/T1133.md | 6 +++--- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/atomics/Indexes/index.yaml b/atomics/Indexes/index.yaml index b2559b23..e630e121 100644 --- a/atomics/Indexes/index.yaml +++ b/atomics/Indexes/index.yaml @@ -12291,13 +12291,14 @@ persistence: ' dependency_executor_name: powershell dependencies: - - description: 'chrome must be installed + - description: 'Chrome must be installed ' - prereq_command: if (cmd /c "chrome 2>nul") {exit 0} else {exit 1} - get_prereq_command: | - Invoke-WebRequest -OutFile $env:temp\ChromeStandaloneSetup64.exe #{chrome_url} - Start-Process $env:temp\ChromeStandaloneSetup64.exe /S + prereq_command: if ((Test-Path "C:\Program Files\Google\Chrome\Application\chrome.exe") + -Or (Test-Path "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")) + {exit 0} else {exit 1} + get_prereq_command: "Invoke-WebRequest -OutFile $env:temp\\ChromeStandaloneSetup64.exe + #{chrome_url}\nStart-Process $env:temp\\ChromeStandaloneSetup64.exe /S \n" executor: name: powershell elevation_required: true @@ -12306,10 +12307,10 @@ persistence: foreach ($extension in $extList) { New-Item -Path HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension -Force New-ItemProperty -Path "HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension" -Name "update_url" -Value "https://clients2.google.com/service/update2/crx" -PropertyType "String" -Force} - Start-Process -FilePath "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" + Start chrome Start-Sleep -Seconds 30 Stop-Process -Name "chrome" - cleanup_command: |- + cleanup_command: | $extList = #{extension_id} foreach ($extension in $extList) { Remove-Item -Path "HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension" -ErrorAction Ignore} @@ -62375,13 +62376,14 @@ initial-access: ' dependency_executor_name: powershell dependencies: - - description: 'chrome must be installed + - description: 'Chrome must be installed ' - prereq_command: if (cmd /c "chrome 2>nul") {exit 0} else {exit 1} - get_prereq_command: | - Invoke-WebRequest -OutFile $env:temp\ChromeStandaloneSetup64.exe #{chrome_url} - Start-Process $env:temp\ChromeStandaloneSetup64.exe /S + prereq_command: if ((Test-Path "C:\Program Files\Google\Chrome\Application\chrome.exe") + -Or (Test-Path "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")) + {exit 0} else {exit 1} + get_prereq_command: "Invoke-WebRequest -OutFile $env:temp\\ChromeStandaloneSetup64.exe + #{chrome_url}\nStart-Process $env:temp\\ChromeStandaloneSetup64.exe /S \n" executor: name: powershell elevation_required: true @@ -62390,10 +62392,10 @@ initial-access: foreach ($extension in $extList) { New-Item -Path HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension -Force New-ItemProperty -Path "HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension" -Name "update_url" -Value "https://clients2.google.com/service/update2/crx" -PropertyType "String" -Force} - Start-Process -FilePath "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" + Start chrome Start-Sleep -Seconds 30 Stop-Process -Name "chrome" - cleanup_command: |- + cleanup_command: | $extList = #{extension_id} foreach ($extension in $extList) { Remove-Item -Path "HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension" -ErrorAction Ignore} diff --git a/atomics/T1133/T1133.md b/atomics/T1133/T1133.md index 346e3930..f6b93d6a 100644 --- a/atomics/T1133/T1133.md +++ b/atomics/T1133/T1133.md @@ -34,7 +34,7 @@ $extList = #{extension_id} foreach ($extension in $extList) { New-Item -Path HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension -Force New-ItemProperty -Path "HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extension" -Name "update_url" -Value "https://clients2.google.com/service/update2/crx" -PropertyType "String" -Force} -Start-Process -FilePath "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" +Start chrome Start-Sleep -Seconds 30 Stop-Process -Name "chrome" ``` @@ -49,10 +49,10 @@ Remove-Item -Path "HKLM:\Software\Wow6432Node\Google\Chrome\Extensions\$extensio #### Dependencies: Run with `powershell`! -##### Description: chrome must be installed +##### Description: Chrome must be installed ##### Check Prereq Commands: ```powershell -if (cmd /c "chrome 2>nul") {exit 0} else {exit 1} +if ((Test-Path "C:\Program Files\Google\Chrome\Application\chrome.exe") -Or (Test-Path "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")) {exit 0} else {exit 1} ``` ##### Get Prereq Commands: ```powershell