> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/es/active-directory/credentials/logon-session-observation.md).

# Observación de sesiones de inicio de sesión

#### Herramienta LogonSessions

Para ver las sesiones de conexión presentes en la máquina, usamos la herramienta:

```bash
./logonsessions.exe
```

Esta herramienta permite observar las diferentes sesiones activas en el sistema.

Podemos ver, por ejemplo:

* una sesión de usuario estándar;
* una sesión de administrador;
* una sesión de red;
* una sesión de servicio.

<figure><img src="/files/9b8b6c749987d5914a0b5d011ec445e99d4dec59" alt=""><figcaption></figcaption></figure>

#### Mostrar procesos relacionados

Para ver los procesos relacionados con las sesiones de inicio de sesión:

```bash
./logonsessions.exe -p
```

El `-p` la opción permite asociar procesos con sesiones de inicio de sesión.

Esto ayuda a entender qué procesos usan qué contexto de seguridad.

<figure><img src="/files/849dc56fe6323dc7d9db355996291a662d9c70ac" alt=""><figcaption></figcaption></figure>

#### Observación de ejemplo

En el laboratorio, cuando un administrador de dominio se conecta a un recurso compartido remoto:

```bash
cd //WS01/c$
```

<figure><img src="/files/71fa7a35aeff09d2b63b18168c3ddb5602bde305" alt=""><figcaption></figcaption></figure>

Podemos observar una sesión del tipo:

```bash
Tipo de inicio de sesión : Red
Paquete de autenticación : Kerberos
```

Esto indica que se logró acceso a la red mediante Kerberos.

<figure><img src="/files/4122f8a5033dbb10b1761b22d9d7df077e6bb89e" alt=""><figcaption></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/es/active-directory/credentials/logon-session-observation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
