windows enabled community medium v1.0.0

sc

Used by Windows to manage services Located at: C:\Windows\System32\sc.exe; C:\Windows\SysWOW64\sc.exe.

📋 Live Preview
sc
sc

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.alternate-data-stream

Contract

Outputs

process.output

Command execution output

Side effects: filesystem_write

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networklow
Disk I/Olow

Examples

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}

Detection

Documentation

sc

sc is a Windows LOLBin. Used by Windows to manage services Located at: C:\Windows\System32\sc.exe; C:\Windows\SysWOW64\sc.exe.

References