Log Hunt

Difficulty
Very Easy
Year
2025
Points
50pts
Categories
Programming
Tools
Fundamentals, Log analysis
Resources
None

27 September 2026

Summary

Our server seems to be leaking pieces of a secret flag in its logs. The parts are scattered and sometimes repeated. Can you reconstruct the original flag?

Analysis

We download the file called server.log. We know the flag is split into many parts, but the file contains too many lines to check one by one. This is where we can use the grep utility to look for patterns in a text file.

Solution

We know the flag always starts with "picoCTF{" so we can look for this part.

Log Hunt - Grep beginning of flag

Notice the pattern: A flag part starts with "FLAGPART" so we can now look for this string.

Log Hunt - Grep for FLAGPART
Thank you for reading!

F0XGL0V3