Scheduled Tasks (Elevated )
Last updated
Last updated
Let's create a task that runs a reverse shell every single minute. In a real-world scenario, you wouldn't want your payload to run so often:
Where: schtasks /create /? - for usage
/SC - schedule Specifies the schedule frequency. Valid schedule types: MINUTE, HOURLY, DAILY, WEEKLY, MONTHLY, ONCE, ONSTART, ONLOGON, ONIDLE, ONEVENT.
/mo 1 - every single minute
/RU - username
Verify service created:
We will got shell after 1 minute
To hide our task, let's delete the SD value for the "Persistence" task we created before. The security descriptors of all scheduled tasks are stored in
We will use psexec to open Regedit with SYSTEM privileges to delete SD value
However, the tasks still execute as the same.