> For the complete documentation index, see [llms.txt](https://books.spartan-cybersec.com/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://books.spartan-cybersec.com/web/prototype-pollution/lab-1-client-side-prototype-pollution-via-browser-apis/utilizando-dom-invader.md).

# Utilizando DOM Invader

Primero inicializamos el navegador:

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

Luego habilitamos el DOM Invader:

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

Y tambien habilitamos esta opcion:

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

Luego de lo anterior, podemos apreciar lo siguiente en el devtools:

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

Luego clickeamos en scan for gadgets:

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

Y luego abrimos el devtools y le damos en exploit:

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

Luego de lo anterior, obtendremos nuestra ejecuccion de codigo js:

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