> 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/ports-and-services/smb-445/smbmap-smb-tool.md).

# SMBMap (инструмент SMB)

> SMBMap — это полезный инструмент для взаимодействия с SMB-общими ресурсами и оценки прав доступа и содержимого доступных файлов. Он позволяет перечислять файлы, просматривать каталоги, искать конкретные файлы и загружать интересующие файлы. Вот некоторые часто используемые команды:

### Список файлов с нулевой сессией

Чтобы перечислить файлы, доступные на SMB-хосте без аутентификации:

```bash
smbmap -H <ip> -u 'null'
smbmap -H <ip> -u none
```

<figure><img src="/files/2fe8d8e9ef0e381390a12fb892c75c4941cb1e52" alt=""><figcaption></figcaption></figure>

### Просмотреть права доступа

Чтобы получить обзор прав доступа на хосте:

```bash
smbmap -H <ip>
```

<figure><img src="/files/2f110b7e612da2686a99a37d8717e202d923c219" alt=""><figcaption></figcaption></figure>

### Поиск конкретных файлов

Чтобы исследовать каталоги и искать конкретные файлы:

```bash
smbmap -H <ip> -r <directory>
```

<figure><img src="/files/6d61fb139a44e693ffca8c5da076d4bfc3f5244a" alt=""><figcaption></figcaption></figure>

### Скачать файлы

Чтобы загрузить нужные файлы, такие как `Groups.xml`, которые могут содержать конфиденциальную информацию:

```bash
smbmap -H <ip> --download <path_to_file>/Groups.xml
```

```bash
smbmap -H 10.10.10.100 --download Replication/active.htb/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/MACHINE/Preferences/Groups/Groups.xml
```

<div data-full-width="true"><figure><img src="/files/e73d79b7fc0b1963ea1006196ded59d2e6a892c2" alt=""><figcaption></figcaption></figure></div>


---

# 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/ports-and-services/smb-445/smbmap-smb-tool.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.
