The challenge gives you a file called flag. Download it and run cat flag — the contents are the flag, in plain text.
- Platform: picoGym
- Verified against: vivian-dai's picoCTF 2021 writeups
- Category: General Skills
- Difficulty: Absolute beginner
- Tools: catwget
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
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:
- Files don't need an extension to be readable — check the contents, not the name
-
cat fileprints a text file;wget URLdownloads one - Always submit the full flag, wrapper included
Originally published on CTFdojo — join the CTFdojo Discord to discuss writeups and get notified about new ones.
Top comments (0)