Skip to content
All rooms
EasyWalkthrough

From user to root with sudo

You have an ordinary account. See what sudo lets you run, and use it to become root.

30 min85 ptsLinux

Once you are on a machine as an ordinary user, the next step is privilege escalation: reaching root. One of the most common ways in is a sudo mistake: the admin lets a user run one program as root without noticing that the program can run any other command.

Credentials: user trainee, password trainee.

0 of 4 · 0 of 85 points

Target machine

Ubuntu 24.04 (sudo misconfiguration) · Runs for 60 minutes, and you can extend it

Sign in to start your own machine.

Task 1 of 3

Task 1: Log in

Press Start machine. Within a minute your own IP address appears. Run every command in this room from the AttackBox (the "Open AttackBox" button) or from your computer over the VPN. Replace IP with your machine's address.

This is an isolated training machine that is yours alone. Using these techniques on systems you have no written permission to test is a crime.

Log in

ssh trainee@IP        # password: trainee
ls
cat user.txt

1.1The user flag (user.txt in your home folder)

20