Medium OSCP EJPTV2 eCCPT Sudoers Privileges Misconfigured Cron Jobs

Misconfigured Cron Jobs

Linux privilege escalation lab involving a combination of cron job abuse and sudoers abuse, accessible exclusively via SSH. Log in using the credentials `jprhack` / `jprhack_p@newd!`. Move laterally to the `carlos` user by exploiting a cron-based backup script—which can be modified by the `it` group (to which `jprhack` belongs)—and then, as `carlos`, leverage a misconfigured sudoers permission for `php` (similar to previous labs involving sudoers/GTFOBins abuse) to escalate to `root` and read the flag located at `/root/flag.txt`.

getting_started.sh

# 1. Extract the archive you just downloaded — on your own box, not a server.

you@host:~$ unzip misconfigured-cron-jobs.zip && cd misconfigured-cron-jobs

# 2. Boot the vulnerable machine. It prints the IP it was assigned.

you@host:~$ sudo bash deploy.sh misconfigured-cron-jobs.tar

# 3. Point your tools at that IP. Ctrl+C here tears it back down when you're done.

Rating —
Downloads 0
Published Nov 13, 2026
Log in to download

Don't have an account? Sign up free

Learn more

Read the theory behind this lab before diving in.

Submit flags

Log in to submit flags and track your progress.

Comments (0)

Log in to join the discussion.

No comments yet. Be the first to ask something.