🔬Cron Jobs
Lab 1
Cron Jobs Privilege escalation
Already logged on as
studentunprivileged user
whoami
groups student
cat /etc/passwd
crontab -l📌
studentuser has no privileges and no scheduled cron jobs

Cron Jobs Identify
Look for all occurences of the path or the file, on the system
The file has been copied into the /tmp directory
Check
copy.shprivileges
Privesc
Every user account has read/write/execute permissions on the
copy.shscriptThe script is writable by the
studentuser. Modify the script to execute a command (e.g.adding student tosudoersfile).When the script is executed by
rootcron job (every 1 min for this lab), it will run commands with pivileged permissionsNo text editors available in the lab

Last updated
Was this helpful?
