Files
atomic-red-team/atomics/T1153/T1153.yaml
T
2018-10-01 20:25:17 -07:00

36 lines
733 B
YAML

---
attack_technique: T1153
display_name: Source
atomic_tests:
- name: Execute Script using Source
description: |
Creates a script and executes it using the source command
supported_platforms:
- macos
- linux
executor:
name: sh
command: |
sh -c "echo 'echo Hello from the Atomic Red Team' > /tmp/art.sh"
chmod +x /tmp/art.sh
source /tmp/art.sh
- name: Execute Script using Source Alias
description: |
Creates a script and executes it using the source command's dot alias
supported_platforms:
- macos
- linux
executor:
name: sh
command: |
sh -c "echo 'echo Hello from the Atomic Red Team' > /tmp/art.sh"
chmod +x /tmp/art.sh
. /tmp/art.sh