Hide and Seek Walkthrough

Challenge Statement#

image

Solution#

Firstly, we can assume ROOT since we can do sudo su.

➜ The First Clue - “Time is on my side, always running like clockwork.”, suggests something related to cronjobs in Linux.
We can check all the current cron jobs using crontab -l.

image

We can decode this to find the 1st part of the flag.

image

➜ The Second Clue - “A secret handshake gets me in every time.”, suggests something related to the SSH.
We can check the .ssh folder on all of our accounts.

image

We find a strange string after the sha2 key. Let’s try to decode it.

image

➜ The Third Clue - “Whenever you set the stage, I make my entrance.”, refers to something that runs when a user logs in.
Let’s check the .bashrc files.

image

Decoding it we can get our 3rd part of the flag.

image

➜ The Fourth Clue - “I run with the big dogs, booting up alongside the system.”, suggests some service which runs when the system is booted. Let’s check for the any suspicious services -

systemctl list-unit-file --type=service | grep enabled

We find this file called cipher.service, let’s investigate further.

image

Decoding this string, we get our 4th flag.

image

➜ The Fifth Clue - “I love welcome messages.”, refers to the message of the day (MOTD), which is sent when the user logs in.
Checking out the /etc/update-motd.d folder, we can find this string.

image

Decoding it, we get out final flag.

image

➜ Combining all the flags, we can submit our complete flag.


Adapted from harishkannan05/THM-HackfinityBattle-Writeup under MIT.

Find us elsewhere

Merch, stickers, and moreSupport the work at the Solvere Labs shop