> 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/hacking-wifi/wpa-wpa2-psk-network-attacks/traffic-manipulation/replacing-web-images-with-xerosploit.md).

# Reemplazo de imágenes web con Xerosploit

Reemplaza imágenes en tráfico web no cifrado durante un laboratorio controlado con Xerosploit.

Xerosploit proporciona un `replace` módulo para reemplazar imágenes en tráfico web no cifrado.

{% embed url="<https://github.com/lionsec/xerosploit/>" %}

### Instalar Xerosploit

Ejecute el instalador:

{% code overflow="wrap" %}

```bash
python3 install.py
```

{% endcode %}

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FGGr6v6RAmZxRNoPJGGuk%2Fimage.png?alt=media&amp;token=5d20751f-57c8-4961-bfb1-67431502c8d2" alt=""><figcaption></figcaption></figure>

### Inicie la herramienta

Inicie Xerosploit:

{% code overflow="wrap" %}

```bash
sudo python3 xerosploit.py
```

{% endcode %}

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FEwguzgEU2ba6owrbNL8e%2Fimage.png?alt=media&amp;token=97a7c85d-45e5-415d-b42a-9986abcd822d" alt=""><figcaption></figcaption></figure>

### Comandos disponibles

* `scan` mapea la red.
* `iface` establece la interfaz de red.
* `gateway` establece la puerta de enlace.
* `start` establece una dirección IP objetivo sin escanear.
* `rmlog` elimina los registros de Xerosploit.
* `help` muestra los comandos disponibles.
* `exit` cierra Xerosploit.

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FypfDsG63SzenRE048EMZ%2Fimage.png?alt=media&amp;token=4597026a-4a7e-480f-8080-f7113c5f99c2" alt=""><figcaption></figcaption></figure>

### Configurar el dispositivo de laboratorio

Establecer la dirección IP del dispositivo de prueba:

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FR6ZfPczvBUFBhWdbxwcE%2Fimage.png?alt=media&amp;token=667f2887-7911-4705-823d-a399c6da842f" alt="" width="536"><figcaption></figcaption></figure>

{% code overflow="wrap" %}

```bash
172.20.10.2
```

{% endcode %}

### Ejecutar el módulo replace

Seleccione el `replace` módulo:

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FDn5RLWSfp6MdvnifdovR%2Fimage.png?alt=media&amp;token=cbb2082e-2cfa-45b3-a02c-aaaf2e90f095" alt=""><figcaption></figcaption></figure>

Elija `replace`, luego ejecute el módulo. Cargue el archivo de imagen a usar:

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FanbnnmzxiwoWMgQl2z5r%2Fimage.png?alt=media&amp;token=f30ca38d-cb5c-45fe-a9d1-0a0a662e4aa0" alt="" width="563"><figcaption></figcaption></figure>

Use esta ruta de imagen:

`/home/jordan/Downloads/pwned.jpeg`

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FAUd6y7nmOv3Kzdo3rygZ%2Fimage.png?alt=media&amp;token=47d78dc0-4983-4164-8c27-8543e687b114" alt=""><figcaption></figcaption></figure>

Las páginas web visitadas por el dispositivo de prueba ahora muestran la imagen reemplazada. Esto se aplica solo al tráfico HTTP no cifrado.

La herramienta también puede mostrar las imágenes cargadas por el dispositivo seleccionado.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/es/hacking-wifi/wpa-wpa2-psk-network-attacks/traffic-manipulation/replacing-web-images-with-xerosploit.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
