jsp代码如下:
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <!DOCTYPE html> <html> <body> <form action="" method="get"> 姓名:<input name="name" type="text"> 密码:<input name="passwd" type="password"> <button type="submit">提交</button> </form> <% String name = request.getParameter("name"); String passwd = request.getParameter("passwd"); if (name != null && name != "") { out.write(name); out.write("<br>"); out.write(passwd); } %> </body> </html>
标签:xss,反射,passwd,示例,write,jsp From: https://www.cnblogs.com/changrunwei/p/17732144.html