Generate docs from job=generate_and_commit_guids_and_docs branch=master [skip ci]
This commit is contained in:
parent
999d18a36d
commit
c81858120b
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user