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

# SMBMap (herramienta SMB)

> SMBMap es una herramienta útil para interactuar con recursos compartidos SMB y evaluar los permisos y el contenido de los archivos disponibles. Te permite listar archivos, explorar directorios, buscar archivos específicos y descargar archivos de interés. Estos son algunos comandos de uso común:

### Listar archivos con una sesión nula

Para listar los archivos disponibles en un host SMB sin autenticación:

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

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

### Listar permisos

Para obtener una vista general de los permisos en un host:

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

<figure><img src="/files/4135c0b4e736e77695929d706c8a1d401b96b50d" alt=""><figcaption></figcaption></figure>

### Buscar archivos específicos

Para explorar directorios y buscar archivos específicos:

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

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

### Descargar archivos

Para descargar archivos relevantes, como `Groups.xml`, que puede contener información sensible:

```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/3a4eb63b67689b6a3355e6de7a17dbbce9d30e9f" 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/es/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.
