ctf-writeup/picoCTF 2023/Permissions
Muhammad Daffa a1e03a758b feat: added picoCTF 2023-04-01 16:50:03 +07:00
..
images feat: added picoCTF 2023-04-01 16:50:03 +07:00
README.md feat: added picoCTF 2023-04-01 16:50:03 +07:00

README.md

Permissions

Can you read files in the root file?

About the Challenge

We have been given an access to SSH server and then we need to read the flag in the root directory

How to Solve?

If we check the sudo configuration

sudo

There are only 1 commands that we can use, /usr/bin/vi. In this case we will be using /usr/bin/vi command to do privilege escalation (Im using GTFOBins to do privilege escalation)

privesc

And then go to /root directory and read .flag.txt to obtain the flag

flag

picoCTF{uS1ng_v1m_3dit0r_55878b51}