2018-11-27 20:36:13 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2018-11-27 20:52:39 +00:00
|
|
|
<title>XSS 2</title>
|
2018-11-29 16:59:34 +00:00
|
|
|
<link rel="shortcut icon" href="../Resources/hmbct.png" />
|
2018-11-27 20:36:13 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2018-11-29 23:42:35 +00:00
|
|
|
|
|
|
|
<div style="background-color:#c9c9c9;padding:15px;">
|
|
|
|
<button type="button" name="homeButton" onclick="location.href='../homepage.html';">Home Page</button>
|
|
|
|
<button type="button" name="mainButton" onclick="location.href='sqlmainpage.html';">Main Page</button>
|
|
|
|
</div>
|
|
|
|
<div align="center">
|
2018-11-27 20:36:13 +00:00
|
|
|
<form method="GET" action="" name="form">
|
2018-11-29 22:06:56 +00:00
|
|
|
<p>Your name:<input type="text" name="username"></p>
|
2018-11-29 23:42:35 +00:00
|
|
|
<input type="submit" name="submit" value="Submit"></div>
|
2018-11-27 20:36:13 +00:00
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
if (isset($_GET["username"])) {
|
|
|
|
$user = str_replace("<script>", "",$_GET["username"]);
|
2018-11-29 22:06:56 +00:00
|
|
|
echo "Your name is "."$user";
|
2018-11-27 20:36:13 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|