> 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/ru/active-directory/credentials/logon-session-observation.md).

# Наблюдение сеансов входа

#### Инструмент LogonSessions

Чтобы увидеть сеансы подключения, присутствующие на машине, мы используем инструмент:

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

Этот инструмент позволяет наблюдать различные активные сеансы в системе.

Например, мы можем увидеть:

* сеанс обычного пользователя;
* сеанс администратора;
* сетевой сеанс;
* сеанс службы.

<figure><img src="/files/64fee78f5b12e7196b4e371c26c72b4447f590dd" alt=""><figcaption></figcaption></figure>

#### Показать связанные процессы

Чтобы просмотреть процессы, связанные с сеансами входа:

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

У `-p` опция позволяет связать процессы с сеансами входа в систему.

Это помогает понять, какие процессы используют какой контекст безопасности.

<figure><img src="/files/d2db88147b0a9dfa7d21f5dfb40ca3b86a913c6c" alt=""><figcaption></figcaption></figure>

#### Пример наблюдения

В лаборатории, когда доменный администратор подключается к удалённому ресурсу:

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

<figure><img src="/files/dfe4174353edd6a7c4497c9299b59a5e6b13c4b8" alt=""><figcaption></figcaption></figure>

Мы можем наблюдать сеанс типа:

```bash
Тип входа : Сеть
Пакет аутентификации : Kerberos
```

Это указывает на то, что доступ к сети был получен через Kerberos.

<figure><img src="/files/cef3d7381e9f787e04f90eba32cf60b5bde322bc" 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/ru/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.
