PicoCTF Obedient Cat Writeup — Read Your First Flag with cat

Misc 2026-11-23 · picoGym · By CTFdojo · ⏱ ... · 👁 ... views
𝕏 Share
TL;DR

The challenge gives you a file called flag. Download it and run cat flag — the contents are the flag, in plain text.

PlatformpicoGym
Verified againstvivian-dai's picoCTF 2021 writeups
CategoryGeneral Skills
DifficultyAbsolute beginner
Tools cat wget

Challenge description

Obedient Cat exists to make sure you can do the two things almost every challenge needs: get a file onto your machine and look inside it.

Provided: a single file named flag

Stuck? Try a hint before reading the solution

Hint 1

The file is plain text despite having no extension.

Hint 2

Download it and print it with cat.

Step 1 — Download the file

Either click the file link on the challenge page, or copy the link and download it from a terminal (the exact URL is shown on the challenge page):

wget https://mercury.picoctf.net/static/.../flag

Working in a terminal from the start pays off — most later challenges assume you can.

Step 2 — Print it with cat

cat (short for concatenate) prints a file's contents to the terminal. The file has no extension, but that doesn't matter — it's plain text:

$ cat flag
picoCTF{***}

Copy the whole string, including picoCTF{ and the closing }, and submit it.

🚩 picoCTF{flag intentionally hidden}

The flag is deliberately hidden — follow the method, you've earned it. 💪

Key takeaways

Simple, but it sets the pattern for everything else:

Resources

CTFdojo
CTFdojo
Community of ethical hackers writing beginner-friendly CTF writeups and guides.

Got a question or a different approach?

Discuss this writeup with the community on the CTFdojo Discord.

Join the Discord →