Find the real flag among decoys
A directory tree has hidden folders and decoy flags. Use find to list dotfiles, then grep with a strict pattern so only the real flag matches.
- Terminal mission
- Beginner
- 2 questions
- 0 of 2 solved
Your goal
Your goalFind the one real flag in a folder tree full of hidden files and decoys.
The challenge is the ~/challenge folder. Read README.txt for the flag format.
Files and folders whose names start with a dot are hidden from plain ls. find lists them. grep -r searches a tree, and -o -E with a tight pattern prints only exact matches.
What’s on screen
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
ctf-box · CTF warm-ups
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
Read first
More in CTF warm-ups
The whole walkthrough
Every step in order: 221 words, about 1 min. It gives away every answer, so try the steps first.