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

# SMBMap (SMB-Werkzeug)

> SMBMap ist ein nützliches Tool für die Interaktion mit SMB-Freigaben und zur Bewertung der Berechtigungen und Inhalte verfügbarer Dateien. Es ermöglicht Ihnen, Dateien aufzulisten, Verzeichnisse zu durchsuchen, nach bestimmten Dateien zu suchen und interessante Dateien herunterzuladen. Hier sind einige häufig verwendete Befehle:

### Dateien mit einer Null-Session auflisten

So listen Sie die auf einem SMB-Host ohne Authentifizierung verfügbaren Dateien auf:

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

<figure><img src="/files/4a8926e6c6a5d684afaf6ff55c41ab00ab5a2211" alt=""><figcaption></figcaption></figure>

### Berechtigungen auflisten

Um einen Überblick über die Berechtigungen auf einem Host zu erhalten:

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

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

### Nach bestimmten Dateien suchen

Um Verzeichnisse zu durchsuchen und nach bestimmten Dateien zu suchen:

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

<figure><img src="/files/8467a209d34addde1870641ef5c63fd958706a70" alt=""><figcaption></figcaption></figure>

### Dateien herunterladen

Um relevante Dateien herunterzuladen, wie zum Beispiel `Groups.xml`, die sensible Informationen enthalten können:

```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/35aae15e70f11adee7a11dcadf226954d4ec06e1" 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/de/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.
