> Pickle Rick CTF (TryHackMe)
Setting up the box
I would recommend to play the box using openvpn rather than accessing the AttackBox. There are a couple of reasons for this:
- Services may not be updated, thereby occasional vulnerabilities may not be visible as the detection tools are not up to date
- Difficulty in maneuvering the interface, as you are much more suited to your personal VM
How to start this box from your VM?
Firstly go to the website and download the configuration file. You can either do this on your Virtual Machine or download it in your PC and share it to the VM using “Shared folder”
- Click on your profile and choose “Access”.
- From this page you can see both the “Server status” and “Connection”
- From here choose the server which you are closest to (quick google search will do the job), and download the configuration file
- Run the config file from its location. (if your current working directory is where the config file is located run your .ovpn file as such)sudo openvpn james.ovpn
- Once you see this line it means your connected and you see status as “connected” from line (3)
Discovery & Scanning
-sV → Service Version Detection
-oN → Save output to a text file (saves the name as initial_scan in the current directory)
This wasn’t very much effective.
We can find more information if we access the site using a web browser such as firefox using http://<attack box ip>. By viewing the “page source” we can identify the username as such. (R1ckRul3s )
Moving on we can identify most of the directories within this site using the gobuster tool.dir → specifies directory/file enumeration mode
-u → The target URL
-w → Path to the wordlist
-x → File extension(s) to search for
output:
We can identify that there is a directory named robots.txt, we can access this from the web browser and go to the specific page (Wubbalubbadubdub)
We could try this text with the username we obtained earlier as credentials to the login page.1st Ingredient
Once we login we are presented with a command panel, our own terminal emulator, using this we can search for files using ls however it is important to note that some commands are restricted such as cat (as an alternative to this command we can make use of less).
Using ‘ls’ we can find the first ingredient as “Sup3rS3cretPickl3Ingred.txt” to read the contents of this file use command ‘less’
We can also read the clue.txt file to get the hint for the next ingredient, which specifies this message
2nd Ingredient
To get the 2nd ingredient you need to use a reverse shell and gain access with the help of netcat.3rd Ingredient
The 3rd ingredient can be found in the root folder ‘cd root’ and then cat out the 3rd.txt file using less to reveal “fleeb juice” as the 3rd ingredient
Once we find the 3 ingredient we are now officially done with this box
Key takeaways
- Implementing reverse shells
- Executing a nikto scans & gobuster scans
Hopefully, you all gained some knowledge from reading my article.
## ADIOS AMIGOS ##

.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
Comments
Post a Comment