-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (30 loc) · 716 Bytes
/
index.php
File metadata and controls
31 lines (30 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
header("X-XSS-Protection: 0");
?>
<?php
$value = 'password123';
setcookie("ContrasenaDeAlgo", $value);
?>
<html>
<head>
<title>XSS</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<?php include('bower_includes.html') ?>
</head>
<body>
<div class="row">
<div class="jumbotron text-center">
<h1>Seguridad informatica</h1>
<h2>Ejemplo de XSS</h2>
</div>
</div>
<form method="get" action="xss.php">
<div class="row text-center">
<div class="col-md-12">
<input type="text" name="vulnerabilidad">
<input type="submit" value="Enviar">
</div>
</div>
</form>
</body>
</html>