Generate docs from job=generate_and_commit_guids_and_docs branch=master [skip ci]
This commit is contained in:
parent
434c998df2
commit
bc03931ed3
@@ -42995,8 +42995,27 @@ defense-evasion:
|
||||
description: Path of folder to recursively set permissions on
|
||||
type: path
|
||||
default: C:\Users\Public\*
|
||||
file_path:
|
||||
description: Path of folder permission back
|
||||
type: Path
|
||||
default: "%temp%\\T1222.001-folder-perms-backup.txt"
|
||||
dependency_executor_name: command_prompt
|
||||
dependencies:
|
||||
- description: 'Backup of original folder permissions should exist (for use
|
||||
in cleanup commands)
|
||||
|
||||
'
|
||||
prereq_command: 'IF EXIST #{file_path} ( EXIT 0 ) ELSE ( EXIT 1 )
|
||||
|
||||
'
|
||||
get_prereq_command: 'icacls #{path} /save #{file_path} /t /q >nul 2>&1
|
||||
|
||||
'
|
||||
executor:
|
||||
command: icacls "#{path}" /grant Everyone:F /T /C /Q
|
||||
cleanup_command: 'icacls ''#{path}'' /restore #{file_path} /q >nul 2>&1
|
||||
|
||||
'
|
||||
name: command_prompt
|
||||
elevation_required: true
|
||||
T1220:
|
||||
|
||||
@@ -224,6 +224,7 @@ You can set your own path variable to "C:\*" if you prefer.
|
||||
| Name | Description | Type | Default Value |
|
||||
|------|-------------|------|---------------|
|
||||
| path | Path of folder to recursively set permissions on | path | C:\Users\Public\*|
|
||||
| file_path | Path of folder permission back | Path | %temp%\T1222.001-folder-perms-backup.txt|
|
||||
|
||||
|
||||
#### Attack Commands: Run with `command_prompt`! Elevation Required (e.g. root or admin)
|
||||
@@ -233,9 +234,25 @@ You can set your own path variable to "C:\*" if you prefer.
|
||||
icacls "#{path}" /grant Everyone:F /T /C /Q
|
||||
```
|
||||
|
||||
#### Cleanup Commands:
|
||||
```cmd
|
||||
icacls '#{path}' /restore #{file_path} /q >nul 2>&1
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Dependencies: Run with `command_prompt`!
|
||||
##### Description: Backup of original folder permissions should exist (for use in cleanup commands)
|
||||
##### Check Prereq Commands:
|
||||
```cmd
|
||||
IF EXIST #{file_path} ( EXIT 0 ) ELSE ( EXIT 1 )
|
||||
```
|
||||
##### Get Prereq Commands:
|
||||
```cmd
|
||||
icacls #{path} /save #{file_path} /t /q >nul 2>&1
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
Reference in New Issue
Block a user