Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1006 Bytes

File metadata and controls

27 lines (17 loc) · 1006 Bytes

Category: General skills

Points: 50

Author: Yahaya Meddy

Description

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? Download the logs and figure out the full flag from the fragments.


Hints

1: You can use grep to filter only matching lines from the log.

2: Some lines are duplicates; ignore extra occurrences.


Solution

As the hint suggests, we can use grep. We could also open a random text editor and hit Ctrl+F , that would work. We'll use grep.

Checking the first ten lines of the file, we see that the file contains the flag parts in cleartext, each prefixed with FLAGPART.

So let's rungrep FLAGPART server.log.

GG!