CatalogLOLBAS

LOL · Binary

Schtasks.exe

2 techniquesWindowsLOLBASGPL-3.0

Execute

ExecutionWindows

Create a recurring task to execute every minute.

Use Create a recurring task to keep reverse shell session(s) alive

schtasks /create /sc minute /mo 1 /tn "Reverse shell" /tr "{CMD}"
Evidence
Upstream reference
Environment
Local host
Context
user
Native
Execute

Execute

ExecutionWindows

Create a scheduled task on a remote computer for persistence/lateral movement

Use Create a remote task to run daily relative to the the time of creation

schtasks /create /s targetmachine /tn "MyTask" /tr "{CMD}" /sc daily
Evidence
Upstream reference
Environment
Local host
Context
admin
Native
Execute