Create a directory for machine on the Desktop and a directory containing the scans with nmap.
This Rick and Morty-themed challenge requires you to exploit a web server and find three ingredients to help Rick make his potion and transform himself back into a human from a pickle.
Deploy the virtual machine on this task and explore the web application: 10.10.150.53
You can also access the web application using the following link: https://10-10-150-53.p.thmlabs.com (this will update when the machine has fully started)
Task 2 - Reconnaissance
suecho"10.10.150.53 pickle_rick.thm">>/etc/hostsmkdirthm/pickle_rick.thmcdthm/pickle_rick.thm# At the end of the room# To clean up the last line from the /etc/hosts filesed-i'$ d'/etc/hosts
I prefer to start recon by pinging the target, this allows us to check connectivity and get OS info.
Sending these three ICMP packets, we see that the Time To Live (TTL) is ~64 secs. this indicates that the target is a *nix system (probably Linux), while Windows systems usually have a TTL of 128 secs.
Seeing html source page we found this precious info about username
2.1 - What is the first ingredient that Rick needs?
We know username and IP and we can try to access with SSH port
sshR1ckRul3s@10.10.150.53
Theauthenticityofhost'10.10.150.53 (10.10.150.53)'can't be established.ECDSA key fingerprint is SHA256:OFFPjHbvGX9Hd++AM6ynQflPu+GRjTFQluD10V6Fg1A.Are you sure you want to continue connecting (yes/no)? yesPWarning: Permanently added '10.10.150.53' (ECDSA) to the list of known hosts.R1ckRul3s@10.10.150.53: Permission denied (publickey).
Nothing to do: Permission denied!
We can try to explore potential directory of website using gobuster