Back to lessonhackingpath / lab
Capture the FlagMedium

Read the Sudo Rule

Lab for sudo & the sudoers File: Borrowing Root's Powers

Scenario

You're the user `analyst`. The flag is in /root/vault/, which you can't read directly. But the admin left you a sudo rule. Check what it grants with `sudo -l`, then use precisely that command to read the flag.

Objective

Read your sudo rule, then use exactly the power it grants to read a root-only file.

lab ~ read the sudo rulenothing real runs
booting lab sandbox…

This sandbox is fully emulated in your browser, nothing real runs and nothing leaves your machine. Type help to see the tools available.