> 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/rpcclient-smb-tool.md).

# rpcclient (أداة SMB)

> أحد **RPCClient** هو برنامج لإجراء استدعاءات الإجراءات البعيدة. يتيح للعميل تنفيذ دوال أو أساليب على خادم بعيد كما لو كانت نُفذت محليًا. يرسل العميل طلبًا إلى الخادم عبر شبكة، وينفذ الخادم الدالة المطلوبة ويعيد النتيجة إلى العميل. يُستخدم هذا الاتصال عادةً في البنى الموزعة لتسهيل التفاعل بين الأنظمة المختلفة.

### **الاتصال بوحدة تحكم المجال**

**1. تسجيل الدخول الأولي بدون مصادقة**/ أمر للاتصال بوحدة تحكم المجال دون تقديم كلمة مرور. الـ `-N` الخيار يحدد `rpcclient` بعدم إرسال كلمة مرور:

```bash
rpcclient -U "" 10.10.10.175 -N
```

**2. تعداد مستخدمي المجال**/ لسرد مستخدمي المجال:

```bash
enumdomusers
```

<figure><img src="/files/4509f05cd5a3ab478fad89bfb9e8f22ef6a2e684" alt=""><figcaption></figcaption></figure>

**3. قائمة مجموعات المجال**/ أمر لسرد مجموعات المجال:

```bash
rpcclient -U "" 10.10.10.161 -N -c 'enumdomgroups'
```

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

### **استكشاف المستخدمين والمجموعات**

**1. تسجيل الدخول باستخدام كلمة المرور**/ الاتصال بوحدة تحكم المجال باستخدام كلمة مرور محددة:

```bash
rpcclient -U "<password>" 10.10.10.10
```

<figure><img src="/files/29ab59516aac8b3d73495f5a698a0309f682d777" alt=""><figcaption></figcaption></figure>

**2. تحديد أعضاء مجموعة المسؤولين**/ لتحديد أعضاء مجموعة المسؤولين (RID `0x200`):

```bash
rpcclient -U "<password>" 10.10.10.10 -c 'querygroupmem 0x200'
```

**3. الحصول على المستخدمين في مجموعة محددة**/ للحصول على المستخدمين في مجموعة محددة (RID `0x1f4`):

```bash
rpcclient -U "<password>" 10.10.10.10 -c 'queryuser 0x1f4'
```

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

**4. سرد أوصاف المستخدمين**/ لسرد أوصاف جميع المستخدمين:

```bash
rpcclient -U "<password>" 10.10.10.10 -c 'querydispinfo'
```

<div data-full-width="true"><figure><img src="/files/fb6649b16e615ed5ad01d1ef73dbc40ec0147bdb" alt=""><figcaption></figcaption></figure></div>

### تعداد المجال

**1. تسجيل الدخول إلى المجال باستخدام بيانات الاعتماد**/ الاتصال بوحدة تحكم المجال باستخدام بيانات الاعتماد:

```bash
rpcclient -U 'ldap%nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz' 10.10.11.174
```

**2. قائمة مستخدمي المجال**

لسرد مستخدمي المجال:

```
enumdomusers
```

<figure><img src="/files/3c0aeeb87f8af93ceea1f4e8f65df881129e136d" alt=""><figcaption></figcaption></figure>

**3. قائمة مجموعات المجال**/ لسرد المجموعات في المجال:

```bash
enumdomgroups
```

<figure><img src="/files/5f768058e55ab60b0ed9bc545f9f0bd769e59c10" alt=""><figcaption></figcaption></figure>

**4. أوصاف المستخدمين**/ للحصول على أوصاف المستخدمين:

```bash
querydispinfo
```

<figure><img src="/files/78e3ee13330f49b5123ff076aaa1f90e7ee63ec7" alt=""><figcaption></figcaption></figure>

**5. إدراج المستخدمين الصالحين في ملف**/ لإدراج جميع المستخدمين الصالحين في ملف:

```bash
rpcclient -U 'ldap%nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz' 10.10.11.174 -c 'enumdomusers' | grep -oP '/[.*?/]' | grep -v 0x |tr -d '[]'
```

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


---

# 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/rpcclient-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.
