My first pentest lab: Pickle Rick (TryHackMe)
My first pentest lab completed. On TryHackMe and in life.
It may look small to someone who has been in the field for years, but for me this lab marks a change in how I study cybersecurity.
Note: this text tells the process and what I learned. I do not publish flags or answers, so I do not spoil the challenge for anyone who will do the room.
The base before the practice
I started studying in January this year. Before running tools and copying commands, I decided to build a foundation. I went through the fundamentals first:
- operating systems;
- computer networks;
- TCP/IP and the OSI model;
- services and protocols;
- Linux;
- information security concepts;
- vulnerabilities, threats and risks.
Then came the new stage: putting theory into practice. I chose the TryHackMe labs to begin with, and the first one I completed was Pickle Rick, inspired by Rick and Morty.
Recon
The challenge starts with reconnaissance of the machine. With Nmap, I identified services such as SSH and an Apache server exposed on port 80.
Investigating the web application
From there, I started investigating the web application. I found information in robots.txt, analyzed clues and worked with Base64-encoded data.
I also lost a good amount of time following a sequence that, after several decodings, ended in “rabbit hole”. It was a clue that led nowhere. That is part of it: knowing how to recognize and drop a dead end is a skill too.
Command execution
I kept enumerating until I reached an application panel. That is where I realized that a seemingly simple field worked as a way to run commands on the system.
From then on, I browsed the file system, looked for information, tested commands and understood the limitations that showed up. At one stage, using cat simply did not work, and I had to find another way: less let me read the content I needed.
Privileges
In the final stage, the problem was privileges. When I tried to access some information normally, it seemed there was nothing there. After analyzing it better and using elevated privileges, I moved forward and found the last file needed to finish the challenge.
What stayed with me
The main lesson was not the commands. It was starting to understand the process:
Recon → Enumerate → Investigate → Form hypotheses → Test → Fail → Adjust → Move on.
After months studying networks, operating systems and security, it was great to see those concepts showing up in a hands-on environment.
I am still at the beginning and have a lot to learn. But now theory has started to meet practice. And this was only the first lab. Onward.
The room: Pickle Rick on TryHackMe.