Board logo

标题: 呵呵!懂的用的话就可以用真实的QQ刷人气了 [打印本页]

作者: SzAngel    时间: 2006-12-5 02:29     标题: 呵呵!懂的用的话就可以用真实的QQ刷人气了

vbs的xmlHttp实用程序的经典函数

Set xmlHttp = CreateObject("microsoft.xmlhttp")
Set oShell = CreateObject("WScript.Shell")
sCurrDir = oShell.CurrentDirectory



Function GetPage(Method,Url,Async,PostContent,FileName)
xmlHttp.open Method,Url,Async
If Method = "POST" Then
  xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
  xmlhttp.setRequestHeader "Content-Length",Len(PostContent)
End If
xmlHttp.send(PostContent)
If Async = False Then GetPage = BytesToBstr(xmlHttp.responseBody,"GB2312",FileName) Else GetPage = ""
End Function

Function BytesToBstr(body,Cset,FileName)
Set objstream = CreateObject("ADODB.Stream")
with objstream
.Type = 1
.Mode =3
.Open
.Write body
If not trim(FileName)="" Then .SaveToFile LCase(FileName),2
.Position = 0
.Type = 2
.Charset = Cset
End With
BytesToBstr = objstream.ReadText
objstream.Close
End Function




使用方法:

GetPage(提交方法, 提交URL, 是否异步, POST内容, [另存为文件名])

几乎封装了一切可用的,呵呵。以后用xmlHttp做刷网页,破密码等,都是很简单的调用了。效率很高,直接继承了IE的Cookie。
作者: 问红颜    时间: 2006-12-5 09:23

错别字  懂得→懂的又抓到一次
作者: 平凡    时间: 2006-12-5 22:30

老大你搞的这个他们能接受的了吗?
作者: 晴空    时间: 2006-12-20 19:52


作者: 冷冷妃紫    时间: 2006-12-21 10:20


头晕
作者: 平凡    时间: 2006-12-22 10:21

刷人气软件我这有,要的米下`~
作者: 雁南飞    时间: 2006-12-27 21:21

我有七个Q,轮流刷去.
作者: 平凡    时间: 2006-12-28 08:57

我给你软件`~你自己去刷`~




欢迎光临 紫菀论坛 (http://bbs.szyin.com/) Powered by Discuz! 7.1