Box Stats
Box Info | Details |
---|---|
Box Name : | Pickle Rick |
Difficulty : | Easy |
Play : | Pickle Rick |
Recommended : | Yes ![]() |
Summary
Happy new year everyone! First writeup of the year, an easy box that we have to bypass a simple filter so we can read files. Let’s start!
Enumeration/Reconnaissance
Now as always let’s continue with a nmap scan.
1 |
|
Once we visit the website we can see a message that tells us to login into his computer and search for the last three secret ingredients for his pickle-reverse potion. Alright, checking the source code i found a username let’s note it down R1ckRul3s
:
1 |
|
Let’s fire up a gobuster
scan now.
1 |
|
We have a login page awesome, checking the robots.txt i noticed a weird text message tried as password & i got in! R1ckRul3:Wubbalubbadubdub
Now we have access to a command panel and we can execute system commands:
What is the first ingredient Rick needs?
Running ls
we can see a file named Sup3rS3cretPickl3Ingred.txt
we can read it from browser since it’s under /var/www/html
1 |
|
Whats the second ingredient Rick needs?
Searching around, i found under /home/rick
the second ingredient. I tried to used cat
on it but i got an error:
We can’t use cat
its disabled, but we can use lot of other methods. Like nl
- less
- tac
1 |
|
Whats the final ingredient Rick needs?
Checking around for privesc, sudo -l
says we can run all commands without entering a password.
1 |
|
So let’s read the final ingredient.
1 |
|
Thank You
Thank you for taking the time to read my writeup. If you don’t understand something from the writeup or want to ask me something feel free to contact me through discord(0xatom#8707) or send me a message through twitter 0xatom
Until next time keep pwning hard!