Create XSS_level3.php
This commit is contained in:
parent
ab41a7b266
commit
f01990f4bd
20
XSS/XSS_level3.php
Normal file
20
XSS/XSS_level3.php
Normal 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>
|
Loading…
Reference in New Issue
Block a user