> 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)

Проверка прав доступа к SMB-ресурсам, рекурсивный просмотр, поиск файлов и загрузка файлов с помощью SMBMap.

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

### Вывод списка файлов с помощью null-сеанса

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

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

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-64def11bf9d89c4cad5afdd1c920476e86c92d38%2Fimage%20(1621).png?alt=media" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-70534651d98afbea96c7cedf74e2ad3fb9fcd3de%2Fimage%20(1646).png?alt=media" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-cc495e0b897c906a053ecf559dd550fcbda5091b%2Fimage%20(1647).png?alt=media" 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="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-26bf1be4ffcb3f2a80e549c8e5819c9f42357ad7%2Fimage%20(1649).png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/ru/ports-and-services/smb-445/smbmap-smb-tool.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
