Catalog LOLBAS

LOL · Binary

Schtasks.exe

2 techniques WindowsLOLBAS GPL-3.0

Execute

Execution Windows

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}"
Context
user
Native
Execute

Execute

Execution Windows

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
Context
admin
Native
Execute