> 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/binary-analysis/userinfo-exe-binary-analysis.md).

# Analyse binaire de UserInfo.exe

Cette note montre un simple Windows `.NET` flux de travail d'analyse binaire : exécution contrôlée, observation du comportement et inspection avec dnSpy pour récupérer des informations sensibles.

## Préparation

Préparez l'environnement de laboratoire, transférez l'archive et configurez la résolution des noms si nécessaire.

<figure><img src="/files/d3a3801c557abd7d164872823822f1958b4f2168" alt="UserInfo.exe lab preparation"><figcaption></figcaption></figure>

<figure><img src="/files/01b8845596670d271862d9dd3528818b2f97d9d7" alt="UserInfo.exe archive transferred"><figcaption></figcaption></figure>

## Exécution contrôlée

```powershell
./UserInfo.exe find -first * -last *
```

<figure><img src="/files/31d08d823f336ec093aca7ad899a5e6e0c2a4aed" alt="UserInfo.exe controlled execution"><figcaption></figcaption></figure>

## Analyser avec dnSpy

{% embed url="<https://github.com/dnSpy/dnSpy>" %}

<figure><img src="/files/77150beafd53c9c5803cf3c7d0ced7e4fa481380" alt="UserInfo.exe opened in dnSpy"><figcaption></figcaption></figure>

Recherchez des chaînes, des fonctions d'authentification, des points de terminaison et des secrets codés en dur.

<figure><img src="/files/d66fe6946f7c97a676499b0e0b469827d5d7ab5f" alt="Searching UserInfo.exe code in dnSpy"><figcaption></figcaption></figure>

Placez un point d'arrêt près du chemin de code où le secret devient lisible.

<figure><img src="/files/86964ebeb9253012b7ad9aa2a6835dba2560869c" alt="Breakpoint set in dnSpy"><figcaption></figcaption></figure>

<figure><img src="/files/437a20df98ac0847258dc43f88515973d5625e32" alt="Recovered runtime secret in dnSpy"><figcaption></figcaption></figure>

## Points clés

* `.NET` les binaires sont souvent faciles à décompiler.
* Les secrets codés en dur doivent être considérés comme compromis.
* L'analyse statique doit être associée à une exécution contrôlée dans un laboratoire.


---

# 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/binary-analysis/userinfo-exe-binary-analysis.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.
