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

# مراقبة جلسات تسجيل الدخول

#### أداة LogonSessions

لرؤية جلسات الاتصال الموجودة على الجهاز، نستخدم الأداة:

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

تتيح لك هذه الأداة ملاحظة الجلسات النشطة المختلفة على النظام.

يمكننا أن نرى، على سبيل المثال:

* جلسة مستخدم عادي؛
* جلسة مسؤول؛
* جلسة شبكة؛
* جلسة خدمة.

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

#### عرض العمليات المرتبطة

لعرض العمليات المرتبطة بجلسات تسجيل الدخول:

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

الـ `-p` يسمح لك هذا الخيار بربط العمليات بجلسات تسجيل الدخول.

يساعد هذا في فهم العمليات التي تستخدم أي سياق أمني.

<figure><img src="/files/5043ba4a1746f2a2ba3a1ba3719e40332ba8456e" alt=""><figcaption></figcaption></figure>

#### مثال على الملاحظة

في المختبر، عندما يتصل مسؤول مجال بمشاركة بعيدة:

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

<figure><img src="/files/24d426a5165c635fe890b26af74e7782c969070c" alt=""><figcaption></figcaption></figure>

يمكننا ملاحظة جلسة من النوع:

```bash
نوع تسجيل الدخول : شبكة
حزمة المصادقة : Kerberos
```

يشير هذا إلى أنه تم الوصول إلى الشبكة عبر Kerberos.

<figure><img src="/files/3a6db1a8e7514b80fb9b59178c829581386b52a6" 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/ar/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.
