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

# Анализ бинарника UserInfo.exe

Эта заметка показывает простой Windows `.NET` процесс анализа двоичных файлов: контролируемое выполнение, наблюдение за поведением и проверка в dnSpy для восстановления конфиденциальной информации.

## Подготовка

Подготовьте лабораторную среду, перенесите архив и при необходимости настройте разрешение имен.

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

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

## Контролируемое выполнение

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

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

## Анализ с помощью dnSpy

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

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

Ищите строки, функции аутентификации, конечные точки и захардкоженные секреты.

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

Установите точку останова рядом с участком кода, где секрет становится доступным для чтения.

<figure><img src="/files/1545c49246c3cab2278f297d47ba9d819ed063f0" alt="Breakpoint set in dnSpy"><figcaption></figcaption></figure>

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

## Ключевые моменты

* `.NET` двоичные файлы часто легко декомпилировать.
* Захардкоженные секреты следует считать скомпрометированными.
* Статический анализ следует сочетать с контролируемым выполнением в лаборатории.


---

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