Used by Windows to manage services Located at: C:\Windows\System32\sc.exe; C:\Windows\SysWOW64\sc.exe.
sc sc Sandbox: execFile · Timeout: 30s
system.file.alternate-data-stream Outputs
process.output Command execution output
filesystem_write Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | low |
| Disk I/O | low |
Creates a new service and executes the file stored in the ADS. (Execute binary file hidden inside an alternate data stream)
sc create evilservice binPath="\"c:\\ADS\\file.txt:cmd.exe\" /c echo works > \"c:\ADS\works.txt\"" DisplayName= "evilservice" start= auto\ & sc start evilservice Modifies an existing service and executes the file stored in the ADS. (Execute binary file hidden inside an alternate data stream)
sc config {ExistingServiceName} binPath="\"c:\\ADS\\file.txt:cmd.exe\" /c echo works > \"c:\ADS\works.txt\"" & sc start {ExistingServiceName} sc is a Windows LOLBin. Used by Windows to manage services Located at: C:\Windows\System32\sc.exe; C:\Windows\SysWOW64\sc.exe.