Update XSS_level3.php

This commit is contained in:
Ömer Faruk Şenyayla 2018-11-30 02:44:42 +03:00 committed by GitHub
parent 62a90f45d7
commit 89c561f881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,9 @@
<div align="center"> <div align="center">
<form method="GET" action="" name="form"> <form method="GET" action="" name="form">
<p>Your name:<input type="text" name="username"></p> <p>Your name:<input type="text" name="username"></p>
<input type="submit" name="submit" value="Submit"></div> <input type="submit" name="submit" value="Submit">
</form> </form>
</div>
<?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"]);