The TryHackMe Hide and Seek room is a premium room from TryHackMe. The challenge is to find the post compromise and persistence mechanisms that a hacker has performed on a Linux box. The room is available at: https://tryhackme.com/room/hfb1hideandseek
This would have been an enjoyable room but the authors decided to make this very CTF and had to decode files multiple times which is not realistic.
The poem listed is important is it gives hints.
- Time is on my side, always running like clockwork.
- A secret handshake gets me in every time.
- Whenever you set the stage, I make my entrance.
- I run with the big dogs, booting up alongside the system.
- I love welcome messages.
Service Investigation
What services are running
First thing to see is what is running on system.
Running the command ps -eFH gives us a list of all the current processes running. Nothing looks suspicous

Now let’s see what services are on the machine:
Running the command: sudo systemctl list-units –all –type=service gives us

Doing some research, there is no cipher.service on Ubuntu.
Running the command sudo systemctl list-units –type=service –state=running shows that the cipher.service is not running at present:

I have nothing else to go on, so let’s see a little more about this cipher.service
Running the command sudo systemctl status cipher.service show that it has been deactivated

Let’s run sudo systemctl cat cipher.service and see what we can find

I am guessing this is Base64 encoded, so it’s off to Cyberchef to decode. And if its not Base64, I can try the Magic option. But in this case it is Base64.

So according to the poem, this is part of the flag.
User Investigation
The system is has 6 users. After a quick check, we find that our user – Ubuntu does not have access to their holder folders unless we use sudo or su to investigate the folders.
The only user that has something slightly different is the zeroday user, which has a .ssh folder, none of the other users do



User the Magic option in Cyberchef again, it shows as Hex, which decodes as follows:

Another scan through the home directories shows that the specter user is the only one who has a .bashrc file which is not 3771 in size

The nc command is definetly interesting

This is now encoded in TWO different values, first Hex and then Base64


Cron File Investigation
A quick scan of the /etc/crontab shows no system wide cron jobs

Looking at the cron jobs for the users we see the following:

using the command sudo crontab -l -u root, we get the following:

Taking the info to Cyberchef we get the following and decoding via Hex:

MOD Updates
From the stupid poem we get I love welcome messages
So let’s see if there is Message of the Day (MOTD)
We run the command cat /etc/update-motd.d/00-header and we get the following:


FLAG: THM{u_g0t_3v3ryt_h1ng_D0wn}