Post

Tryhackme Pickle-Rick Writeup

Tryhackme pickle rick step by step writeup

Tryhackme Pickle-Rick Writeup

Tryhackme pickle rick step by step writeup

Link to the room : https://tryhackme.com/room/picklerick

This is the http page for the machine! :-

Screenshot 2022-07-22 182409

Lets run a nmap scan to know more!

Screenshot 2022-07-22 183931

As only 2 ports are open lets try to find more directories!

Screenshot 2022-07-22 193213

robots.txt seems interesting, Lets check it out!

Let me check the source code of the page first, to see if i get anything potential! Screenshot 2022-07-22 193625

I got the username!

Now lets check the robots.txt. Screenshot 2022-07-22 193755

Seems interesting

Lets try to ssh using the username and the string we got in the robots.txt Screenshot 2022-07-22 195510

ok

Why not find login panels in the web?, Lets do it.

Screenshot 2022-07-22 202929

Great so we got an login panel

Screenshot 2022-07-22 231432

Lets use the credentials we got earlier! Screenshot 2022-07-22 231525

Great so now we have command line interface lol. Screenshot 2022-07-22 231602

Lets ls quickly! Screenshot 2022-07-22 231906 Woah!, lets try to access it via browser as its in the same directory!

Screenshot 2022-07-22 232114 Screenshot 2022-07-22 232204 Great!

Lets check clue.txt now.

Screenshot 2022-07-22 232349

Ok so basically we’ll need a shell in order to navigate through filesystem effeciently!

We have a good resource for shells : gtfobins.github.io

Screenshot 2022-07-22 233105

I just modified it little bit, to make it short and easy! First run the netcat listener to start listening for the reverse shell in the attacker machine!

Screenshot 2022-07-22 233347

Now run the payload in the command pannel.

Screenshot 2022-07-22 233527

Great, so now we have a reverse shell!

Screenshot 2022-07-22 233558

Lets check for users in the home directory! Screenshot 2022-07-22 233811

Greaat we got our second ingredient!

Lets try to sudo su to see if we get root acces? Screenshot 2022-07-22 234021

Great we got the root acces and also the third ingredient!

This post is licensed under CC BY 4.0 by the author.