Create XSS_level3.php

This commit is contained in:
Ömer Faruk Şenyayla 2018-11-27 23:36:52 +03:00 committed by GitHub
parent ab41a7b266
commit f01990f4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
XSS/XSS_level3.php Normal file
View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>REFLECTED XSS 3</title>
</head>
<body>
<form method="GET" action="" 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 = preg_replace("/<(.*)[S,s](.*)[C,c](.*)[R,r](.*)[I,i](.*)[P,p](.*)[T,t]>/i", "", $_GET["username"]);
echo "$user";
}
?>
</body>
</html>