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

# SMBMap (outil SMB)

> SMBMap est un outil utile pour interagir avec les partages SMB et évaluer les autorisations ainsi que le contenu des fichiers disponibles. Il vous permet de lister les fichiers, d’explorer les répertoires, de rechercher des fichiers spécifiques et de télécharger les fichiers intéressants. Voici quelques commandes couramment utilisées :

### Lister les fichiers avec une session nulle

Pour lister les fichiers disponibles sur un hôte SMB sans authentification :

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

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

### Lister les autorisations

Pour obtenir un aperçu des autorisations sur un hôte :

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

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

### Rechercher des fichiers spécifiques

Pour explorer les répertoires et rechercher des fichiers spécifiques :

```bash
smbmap -H <ip> -r <répertoire>
```

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

### Télécharger des fichiers

Pour télécharger des fichiers pertinents, tels que `Groups.xml`, qui peut contenir des informations sensibles :

```bash
smbmap -H <ip> --download <chemin_vers_le_fichier>/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/5c3565f3907fe638d88ac07db4b349dad92fcf1a" 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/fr/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.
