Skip to content

Day 2

Use the ls command to list the files present in the current directory. How many log files are present?

Section titled “Use the ls command to list the files present in the current directory. How many log files are present?”
Terminal window
ls |wc -l

Elf McSkidy managed to capture the logs generated by the web server. What is the name of this log file?

Section titled “Elf McSkidy managed to capture the logs generated by the web server. What is the name of this log file?”

On what day was Santa’s naughty and nice list stolen?

Section titled “On what day was Santa’s naughty and nice list stolen?”

Inside the webserver.log we can identify that the attacks happened on 18.11.2022 meaning:

What is the name of the important list that the attacker stole from Santa?

Section titled “What is the name of the important list that the attacker stole from Santa?”

Search for Santa and List with grep results in:

Terminal window
grep "santa" webserver.log |grep list

Look through the log files for the flag. The format of the flag is: THM{}

Section titled “Look through the log files for the flag. The format of the flag is: THM{}”
Terminal window
grep -ri "thm{" .

r -> recursive

i -> ignore case

. -> local folder

\