PRIMARY CATEGORY → WINDOWS PRIVESC

ADS → Alternate Data Stream

It is a Windows NTFS File System Feature

It allows a regular system file to have more than one data stream stored in it

Typically, a file has only one Data Stream, the default, but with the use of ADS, a user can attach additional data streams to store supplementary information or other data without modifying the main content of the file

The Default Data Stream of a file is named $DATA


Check for the Existence of ADS in a file

SMBClient
smbclient --user '<USER>%<PASSWORD>' --command 'allinfo <FILENAME>' //<TARGET>/<SHARED_RESOURCE>

Download an ADS from a file

SMBClient
smbclient --user '<USER>%<PASSWORD>' //<TARGET>/<SHARED_RESORCE>
smb: \> get <FILENAME>:<ADS_NAME>