Unix 25
Bookmarked!This exercise is one of our challenges to help you learn more about Unix/Linux
This challenge focuses on the sudo
command, which allows users to run commands with the privileges of another user, typically root. You will start by logging in with the provided credentials and using the sudo -l
command to list the permissible actions for the current user. The output will indicate that you can run /bin/bash
as the user victim
.
By executing sudo -u victim /bin/bash
, you will switch to the victim user and be able to run commands as them. The objective is to access the key.txt
file located in the victim user's home directory, demonstrating how privilege escalation can be achieved through sudo
when configured incorrectly.