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

# SMBMap (أداة SMB)

> يُعد SMBMap أداة مفيدة للتفاعل مع مشاركات SMB وتقييم أذونات و محتوى الملفات المتاحة. يتيح لك سرد الملفات، واستكشاف الأدلة، والبحث عن ملفات محددة، وتنزيل الملفات التي تهمك. فيما يلي بعض الأوامر المستخدمة شائعًا:

### سرد الملفات بجلسة فارغة

لسرد الملفات المتاحة على مضيف SMB دون مصادقة:

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

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

### سرد الأذونات

للحصول على نظرة عامة على الأذونات على مضيف:

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

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

### البحث عن ملفات محددة

لاستكشاف الأدلة والبحث عن ملفات محددة:

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

<figure><img src="/files/d64b0c129b850a436665e084ca247d2b35402afe" 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="/files/deb37572bd42a3ba0513dab62a660ea727d6ec3d" 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/ar/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.
