靶机概览

HTB Eighteen 是一台难度评级为 EASY 的 Windows 靶机,主要围绕 Active Directory 域环境安全、MSSQL 数据库渗透、哈希破解与 BadSuccessor 权限提升漏洞展开。该靶机完整展示了从外部服务突破到域内横向移动,并利用最新系统特性实现权限提升的完整攻击链,从初始凭证窃取到最终域控完全控制,为渗透测试初学者掌握基础的 Windows 域环境攻击技术提供了清晰的实战路径。
信息收集
网络扫描与服务识别
Nmap 先通过全端口扫描定位开放端口,再对关键端口进行深度探测,识别服务版本与环境信息。
全端口扫描
┌──(kali㉿attacker)-[~] └─$ nmap -T3 -p- 10.10.11.95 Starting Nmap 7.95 ( https://nmap.org ) at 2025-11-22 04:50 CST Nmap scan report for eighteen.htb (10.10.11.95) Host is up (0.43s latency). Not shown: 65532 filtered tcp ports (no-response) PORT STATE SERVICE 80/tcp open http 1433/tcp open ms-sql-s 5985/tcp open wsman Nmap done: 1 IP address (1 host up) scanned in 1129.62 seconds
关键端口探测
┌──(kali㉿attacker)-[~] └─$ nmap -sC -sV -A -p 80,1433,5985 10.10.11.95 Starting Nmap 7.95 ( https://nmap.org ) at 2025-11-22 05:11 CST Nmap scan report for eighteen.htb (10.10.11.95) Host is up (0.58s latency). PORT STATE SERVICE VERSION 80/tcp open http Microsoft IIS httpd 10.0 |_http-server-header: Microsoft-IIS/10.0 |_http-title: Welcome - eighteen.htb 1433/tcp open ms-sql-s Microsoft SQL Server 2022 16.00.1000.00; RTM |_ssl-date: 2025-11-22T04:14:24+00:00; +7h01m56s from scanner time. | ms-sql-info: | 10.10.11.95:1433: | Version: | name: Microsoft SQL Server 2022 RTM | number: 16.00.1000.00 | Product: Microsoft SQL Server 2022 | Service pack level: RTM | Post-SP patches applied: false |_ TCP port: 1433 | ms-sql-ntlm-info: | 10.10.11.95:1433: | Target_Name: EIGHTEEN | NetBIOS_Domain_Name: EIGHTEEN | NetBIOS_Computer_Name: DC01 | DNS_Domain_Name: eighteen.htb | DNS_Computer_Name: DC01.eighteen.htb | DNS_Tree_Name: eighteen.htb |_ Product_Version: 10.0.26100 | ssl-cert: Subject: commonName=SSL_Self_Signed_Fallback | Not valid before: 2025-11-22T01:31:18 |_Not valid after: 2055-11-22T01:31:18 5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-title: Not Found |_http-server-header: Microsoft-HTTPAPI/2.0 Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device : general purpose Running (JUST GUESSING): Microsoft Windows 2022 (88%) OS CPE: cpe:/o:microsoft:windows_server_2022 Aggressive OS guesses: Microsoft Windows Server 2022 (88%) No exact OS matches host ( conditions non-ideal). Network Distance: 2 hops Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows Host script results: |_clock-skew: mean: 7h01m56s, deviation: 0s, median: 7h01m55s TRACEROUTE (using port 80/tcp) HOP RTT ADDRESS 1 922.97 ms 10.10.16.1 2 335.81 ms eighteen.htb (10.10.11.95) OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap : 1 IP address (1 host up) scanned 59.57 seconds














