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

# SMBMap (Ferramenta SMB)

> SMBMap é uma ferramenta útil para interagir com compartilhamentos SMB e avaliar as permissões e o conteúdo dos arquivos disponíveis. Ela permite listar arquivos, explorar diretórios, buscar arquivos específicos e baixar arquivos de interesse. Aqui estão alguns comandos comumente usados:

### Listar arquivos com uma sessão nula

Para listar os arquivos disponíveis em um host SMB sem autenticação:

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

<figure><img src="/files/cf33a64bcb32ac1d68f24fee897993c29f245c3b" alt=""><figcaption></figcaption></figure>

### Listar permissões

Para obter uma visão geral das permissões em um host:

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

<figure><img src="/files/67db3a82ca0217d123021a363bb2ccd895af90bb" alt=""><figcaption></figcaption></figure>

### Buscar arquivos específicos

Para explorar diretórios e buscar arquivos específicos:

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

<figure><img src="/files/61fb2b3c7f87ce4f66ec2b6460b77e85dc4f4d2d" alt=""><figcaption></figcaption></figure>

### Baixar arquivos

Para baixar arquivos relevantes, como `Groups.xml`, que pode conter informações sensíveis:

```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/62b213dba7153cba0d622ef80a591212e10829c9" 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/pt-br/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.
