反射型XSS发掘:

    我们在搜索的时候,有些网站就会将搜索文字显示出来.贴测试代码

    

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4     <title>XSS-反射型</title>
 5     <meta charset="utf-8">
 6 </head>
 7 <body>
 8     <form action="" method="POST">
 9         搜索内容:<input type="text" name="con">
10         <input type="submit" name="sub" value="搜索">
11     </form>
12     <?php
13         if(isset($_POST['sub'])){
14             echo !empty($_POST['con'])?$_POST['con']:"";
15         }
16     ?>
17 </body>
18 </html>
学无止境

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2021-05-12
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2021-06-14
  • 2022-02-06
  • 2022-12-23
相关资源
相似解决方案