Skip to content

Latest commit

 

History

History
32 lines (31 loc) · 2.94 KB

README.md

File metadata and controls

32 lines (31 loc) · 2.94 KB

PickleRickTHM_writeup

1. Use NMAP to check on the opened ports

As we can see we have 2 open ports (22, 80) (ignore the activate windows plz) 🥲

Now lets check what the website (hint: the source code)

As we can see there it is the username commented out in the source code
Looking back at the gobuster output we can see "robots.txt", lets paste that on our passw.. it worked!

As we can see in the website we have a command panel, lets type any commands to see if it works.. it does work!

We can see the "Sup3rS3cretPickl3Ingred.txt" lets paste it in the browser since the cat command is disabled, there is our first ingredient

Lets check what directory we are on now

Lets move to the home directory and check the users

We can see there is a user named rick, lets move to it. There is our second ingredient!

Let us check the user permissions using "sudo -l"

We can see that we can execute any command without any password. Since that is the case, lets sudo to root

We can see a txt file lets use the less command to see its contents.. :)

thats it for the walkthrough for pickle rick. make sure you follow my github for future scripts projects etc