小编Tej*_*Tej的帖子

模拟CSRF攻击

我想模拟CSRF Attack来检查我的网站漏洞.我在我的asp.net webapplication上试了但是没能模拟.所以请帮我模拟CSRF攻击.我有一个test.aspx模拟.

  <form name="form1" id="form1" runat="server" method="post" action="mysite.com">
 <script type="text/javascript">
        document.cookie[".ASPXAUTH"] = "someaspxauth";
        document.cookie["ASP.NET_SessionId"] = "somesessionid";
        document.form1.submit();
    </script>
</form>
Run Code Online (Sandbox Code Playgroud)

我还缺少什么?提前致谢.

asp.net csrf simulate csrf-protection

4
推荐指数
1
解决办法
3256
查看次数

标签 统计

asp.net ×1

csrf ×1

csrf-protection ×1

simulate ×1