picoCTF Wave a flag Writeup: Run the Binary with -h

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

The challenge gives a Linux program, warm. Download it, mark it executable with chmod +x warm, and run it: it asks for -h. ./warm -h prints the flag.

PlatformpicoGym (picoCTF 2021)
Verified againstvivian-dai's picoCTF 2021 writeups
CategoryGeneral Skills
DifficultyBeginner
Tools wget chmod strings

Challenge description

This challenge teaches the first thing to try with any unknown command-line tool: ask it for help.

Provided: the executable warm

Stuck? Try a hint before reading the solution

Hint 1

Run the program and read what it asks for.

Hint 2

chmod +x warm, then ./warm -h.

Step 1 — Download and make it executable

Download the file from the challenge page (in the picoCTF webshell or any Linux machine), then give it execute permission — downloaded files aren't executable by default:

$ wget https://mercury.picoctf.net/static/.../warm
$ chmod +x warm

Step 2 — Run it, then ask for help

Running it without arguments tells you what it wants:

$ ./warm
... Pass me a -h to learn what I can do!
$ ./warm -h
... I actually don't do much, but I do have this flag here: picoCTF{***}

Step 3 — Or skip running it entirely

The flag is stored as plain text inside the binary, so strings finds it without executing anything — a safer habit for programs you don't trust:

$ strings warm | grep picoCTF
🚩 picoCTF{flag intentionally hidden}

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

Key takeaways

Two habits worth keeping from a 10-point challenge:

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 →