Description
Attackers hid the flag in a huge text dump. Download the file and grep for picoCTF to recover it.
Use grep to search for `pico` inside the file.
Trim leading whitespace and extract only the flag token.
grep pico anthem.flag.txt
grep pico anthem.flag.txt | sed -e 's/^ *//' | cut -d ' ' -f7
Solution
- Step 1Search with grepEven though the file is large, `grep pico anthem.flag.txt` immediately shows the flagged line.
- Step 2Clean the outputUse sed/cut to strip spaces and isolate the picoCTF string.
Flag
picoCTF{gr3p_15_@w3s0m3_2116...}
Classic grep exercise-useful reminder to search rather than scroll.