Files
atomic-red-team/atomics/T1126/T1126.yaml
T
Michael Haag ba64b21e2a T1126 fix (#341)
* Resolve issue #340

Fixed #340

* Generate docs from job=validate_atomics_generate_docs branch=T1126-fix
2018-09-18 08:38:22 -07:00

61 lines
1.2 KiB
YAML

---
attack_technique: T1126
display_name: Remove Network Share
atomic_tests:
- name: Add Network Share
description: |
Add a Network Share utilizing the command_prompt
supported_platforms:
- windows
input_arguments:
share_name:
description: Share to add.
type: string
default: \\test\share
executor:
name: command_prompt
command: |
net use c: #{share_name}
net share test=#{share_name} /REMARK:"test share" /CACHE:No
- name: Remove Network Share
description: |
Removes a Network Share utilizing the command_prompt
supported_platforms:
- windows
input_arguments:
share_name:
description: Share to remove.
type: string
default: \\test\share
executor:
name: command_prompt
command: |
net share #{share_name} /delete
- name: Remove Network Share PowerShell
description: |
Removes a Network Share utilizing PowerShell
supported_platforms:
- windows
input_arguments:
share_name:
description: Share to remove.
type: string
default: \\test\share
executor:
name: powershell
command: |
Remove-SmbShare -Name #{share_name}
Remove-FileShare -Name #{share_name}