SudoMakeMeASandwich

less than 1 minute read

πŸ“¦ SUDO MAKE ME A SANDWICH

Category Author
πŸ“¦ Miscellaneous Darkraicg492

Challenge Prompt

Can you read the flag? I think you can!

Problem Type

  • Sudo

Solve

We are told we need to SSH into the machine, so we start with that. 2026-03-22_13-32-56

Upon logging in we check the directory where we see that there is a flag.txt file, but it is read only by Root. 2026-03-22_13-33-13

If we run a sudo -l to list out the commands we can run as root we see we can run emacs with no password.
2026-03-22_13-33-38

So, let’s use that to read the file!
2026-03-22_13-35-16

Inside the flag.txt file we have the flag!
2026-03-22_13-34-31

To exit emacs, you can use Control + X and then Control + C