Create XSS_level4.php
This commit is contained in:
parent
7c73b7d83a
commit
ead0c37718
20
XSS/XSS_level4.php
Normal file
20
XSS/XSS_level4.php
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>REFLECTED XSS 5</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form method="GET" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
|
||||||
|
<p>Adınız:<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";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user