Files
atomic-red-team/Windows/Persistence/New_Service.md
T

20 lines
415 B
Markdown
Raw Normal View History

# Service Installation
MITRE ATT&CK Technique: [T1050](https://attack.mitre.org/wiki/Technique/T1050)
## sc.exe
Input:
sc create TestService binPath="C:\Path\file.exe"
## PowerShell
Input:
powershell New-Service -Name "TestService" -BinaryPathName "C:\Path\file.exe"
2017-11-19 07:42:50 -07:00
## Test Script
2017-11-19 07:51:59 -07:00
[AtomicService.cs](https://github.com/redcanaryco/atomic-red-team/blob/master/Windows/Payloads/AtomicService.cs)