Pickle Rick
Date: 10 November, 2021
Author: Dhaval Kotak
Room: Pickle Rick
Port Scanning
nanomite @ zeus in ~/thm/pickle_rick
⚡️ nmap -A 10.10.117.227 | tee nmap.log
Starting Nmap 7.91 ( https://nmap.org ) at 2021-11-10 15:15 IST
Nmap scan report for 10.10.117.227
Host is up (0.21s latency).
Not shown: 998 closed ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.6 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 2048 c7:6f:b8:7d:07:b7:15:ce:0e:72:c5:f3:26:9c:d2:58 (RSA)
| 256 57:a8:4c:12:5a:15:78:f0:d4:85:40:54:db:04:3b:a3 (ECDSA)
|_ 256 67:bb:90:10:c9:3e:30:4b:0f:81:34:d1:98:b6:5c:bc (ED25519)
80/tcp open http Apache httpd 2.4.18 ((Ubuntu))
|_http-server-header: Apache/2.4.18 (Ubuntu)
|_http-title: Rick is sup4r cool
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 28.38 secondsGobuster Scanning
Information Gathering
Username
We find a username in the source code of the home page of the website
Robots.txt
Looking at robots.txt we find this text instead of Allow or Disallow
Login.php
We can try to use these two as username and password.
R1ckRul3s:Wubbalubbadubdub
And we are logged in!
Command Execution
By running ls, we get the following result:
Commands like cat, head and tail are not working.
So I tried less to print the text
What is the first ingredient Rick needs?
mr. meeseek hair
As per clue the other ingredient was somewhere in the file system.
So I was looking in /home/rick in which the second ingredient was there.
What is the second ingredient Rick needs?
1 jerry tear
I guess the final ingredient is in /root so lets first check if there are any binaries we can exploit.
This means we have all the permission to run all the commands as root. Fantastic!
What is the final ingredient Rick needs?
fleeb juice
Last updated
