Ctf

picoCTF: Sudo Make Me a Sandwich Writeup

March 2026

Challenge Overview

Hey 👋

In this medium level challenge, I was given SSH access to a machine and needed to read a protected flag file. At first glance, it looked simple, but it required abusing a misconfigured sudo permission.


🔌 Connecting to the Machine

I started by connecting to the server using SSH:

ssh -p 54547 ctf-player@green-hill.picoctf.net

When prompted, I entered the password:

    d1a1ff7a

Initial Enumeration

Once logged in, I listed the files,

Read More