Files
atomic-red-team/atomics/T1126/T1126.yaml
T

64 lines
1.3 KiB
YAML
Raw Normal View History

2018-07-01 20:14:29 -05:00
---
attack_technique: T1126
display_name: Remove Network Share
2018-09-05 11:17:19 -04:00
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
2019-09-03 07:34:42 -06:00
elevation_required: false
2018-09-05 11:17:19 -04:00
command: |
net use c: #{share_name}
net share test=#{share_name} /REMARK:"test share" /CACHE:No
2018-07-01 20:14:29 -05:00
- 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
2019-09-03 07:34:42 -06:00
elevation_required: false
2018-07-01 20:14:29 -05:00
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
2019-09-03 07:34:42 -06:00
elevation_required: false
2018-07-01 20:14:29 -05:00
command: |
Remove-SmbShare -Name #{share_name}
Remove-FileShare -Name #{share_name}