Update and rename XSS_level4.php to XSS_level5.php

This commit is contained in:
Ömer Faruk Şenyayla 2018-11-29 22:53:27 +03:00 committed by GitHub
parent 3aa27eb47a
commit 8fe4c54f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>REFLECTED XSS 5</title>
<title>XSS 5</title>
<link rel="shortcut icon" href="../Resources/hmbct.png" />
</head>
<body>
<form method="GET" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
<p>Adınız:<input type="text" name="username"></p>
<p>Your name:<input type="text" name="username"></p>
<input type="submit" name="Gönder">
</form>
<?php
if (isset($_GET["username"])) {
$user = str_replace("<", "", $_GET["username"]);
echo "$user";
echo "Your name is "."$user";
}
?>