Update XSS_level3.php

This commit is contained in:
Ömer Faruk Şenyayla 2018-11-30 01:07:04 +03:00 committed by GitHub
parent cdc2d2a969
commit 1310ec3301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,13 @@
</head> </head>
<body> <body>
<form method="GET" action="" name="form"> <form method="GET" action="" 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"> <input type="submit" name="Gönder">
</form> </form>
<?php <?php
if (isset($_GET["username"])) { if (isset($_GET["username"])) {
$user = preg_replace("/<(.*)[S,s](.*)[C,c](.*)[R,r](.*)[I,i](.*)[P,p](.*)[T,t]>/i", "", $_GET["username"]); $user = preg_replace("/<(.*)[S,s](.*)[C,c](.*)[R,r](.*)[I,i](.*)[P,p](.*)[T,t]>/i", "", $_GET["username"]);
echo "$user"; echo "Your name is "."$user";
} }
?> ?>