Sitemap

Proving grounds:Chatty

3 min readJan 26, 2023

Today we will take a look at Proving grounds: Chatty. My purpose in sharing this post is to prepare for oscp exam. It is also to show you the way if you are in trouble. Please try to understand each step and take notes.

  • Network
22/tcp   open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.2 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 3072 c1994b952225ed0f8520d363b448bbcf (RSA)
| 256 0f448badad95b8226af036ac19d00ef3 (ECDSA)
|_ 256 32e12a6ccc7ce63e23f4808d33ce9b3a (ED25519)
3000/tcp open ppp?
  • rocket chat (3000)

While browsing the site, we see that we can create an account here.

Press enter or click to view image in full size

Find and prepare a suitable exploit.

Press enter or click to view image in full size

Use the password here when creating an account so that there is no difficulty when launching the exploit.

Press enter or click to view image in full size

After logging into the account, we find the email address of the admin user.

Press enter or click to view image in full size

We can skip the first half of the exploit script. Near the bottom of the script we can modify the code to save us some time.

Press enter or click to view image in full size

We turn on the exploit and take the shell.

When I thought it wasn’t working at first, I ping my machine and boom

Press enter or click to view image in full size

Now we take the reverse shell.

Press enter or click to view image in full size

As we know the ssh port was open, to get a quality shell, let’s create a key ourselves and transfer it here and connect with ssh.

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
  • Privesc (maidag)

Check Maidag’s version and look for a suitable exploit

Press enter or click to view image in full size
Press enter or click to view image in full size

We found the exploit. Let’s download and copy it to the target machine and run it.

Press enter or click to view image in full size

And now we are the root

“If you have any questions or comments, please do not hesitate to write. Have a good days”