⏲️Scheduled Apps (CronJobs)
Last updated
Last updated
Windows can be configured to run tasks at specific times, periodically (e.g. every 5 mins) or when triggered by some event (e.g. a user logon). Tasks usually run with the privileges of the user who created them, however administrators can configure tasks to run as other users, including SYSTEM. 98 Commands Unfortunately, there is no easy method for enumerating custom tasks that belong to other users as a low privileged user account. List all scheduled tasks your user can see:
Often we have to rely on other clues, such as finding a script or log file that indicates a scheduled task is being run.
Another example,
There was a log.txt file that said that there was this scheduled task running every 5 minutes. Morever I had write access to these.
I renamed the backuppowershell.ps1 to backup_powershell.bak
Then I replaced that script with this powershell reverse shell.
Upon restart, I didnt need to wait 5 minutes since I had the permission to shutdown the computer using shutdown -r or Computer-Restart in Powershell.
Afterwards, I was able to get a reverse shell.