HTB - Jeeves

Jeeves

Getting Root:

  1. The box is running Jenkins version 2.87 on port 50000 which allows us to get a reverse shell using Groovy

  2. There are two methods of getting root. JuicyPotato or a KeePass database file.

Tools Used:

nmap, gobuster, JuicyPotato.exe, keepass2john

Nmap

Enumeration

HTTP

Port 80 was rabbit hole, but port 50000 had Jenkins version 2.87 running

Getting a shell

We can use a Groovy code to get a reverse shell.

Groovy code I used: https://gist.github.com/frohoff/fed1ffaab9b9beeb1c76

If you prefer a reverse powershell, you can use the following groovy code.

Got a shell

Privilege Escalation

There are two methods.

  1. JuicyPotato token impersonation

  2. KeePass file with all the creds

Systeminfo

JuicyPotato - Method 1

Got a shell as SYSTEM

KeePass - Method 2

Cracking Keepass

Last updated