Contents

CTF After Dark - File - Get a Grep


Contents

get a grep

task

It appears as though someone had quite the field day with bash commands and made this file of random stuff, i wonder if there is a way to extract any useful information from it?

Author: james

Tags: file

writeup

Let’s grab this file !

1
wget https://acmcyber.com/static/files/a6ea3133e470a2b7/bigfile.txt

By using the strings utility to print out any printable characters I see a lot of useless random characters.

However since the challenge is called get a grep I can try to use grep to find any useful information by searching for the flag using Global Regular Expression (grep):

1
2
3
4
5
6
7
8
strings bigfile.txt | grep flag
flag{incompelete
flag
asdglj flag
_flag
flag{wrong parenthese)
flag{grep_mastermind}
flag{aklsdgjnakjehgl;ewjhg;lwejahg;lasdjg;klasdjg;ljwnglj;q342ngl;jwdang;vlnasdg;

I assume the correct flag is: flag{grep_mastermind}

And that is indeed the correct flag.