第一个脚本(隐秘博客刷访问量脚本.vbs)
Option Explicit
Dim Http, szBuf, URL, iDelay, i, OverNum, Nums
szBuf = InputBox( "请输入要刷的网址:", "输入", "http://luobin.blog.51cto.com/" )
URL = Trim(szBuf)
If 0 = Len(URL) Then WScript.Quit
If 2 = MsgBox( "网址为:" & URL & vbCrLf & " 您确定吗?", 32 + 1, "请确认" ) Then WScript.Quit
OverNum = InputBox( "请输入要刷的次数", "输入", "50" )
If IsNumeric(OverNum) Then
NumS = CInt(OverNum)
Else
Wscript.echo "您输入的不是数字!本程序将退出!"
Wscript.Quit
End If
Do
szBuf = InputBox( "请输入延迟,单位:秒 (建议每10~30分钟刷一次!)", "输入", "10" )
If IsNumeric(szBuf) Then
iDelay = CInt(szBuf)
If iDelay > 0 Then
iDelay = iDelay * 1000
Exit Do
End If
End If
Loop
i = 0
Do
Set Http = Createobject("Microsoft.XMLHTTP")
Http.open "GET",Url,false
Http.send
Set Http = nothing
WScript.Sleep iDelay
i = i + 1
If i = Nums Then
' Msgbox "已经刷完"&i&"次了!"
Exit Do
End If
Loop
第二个脚本(博客刷访问量脚本.vbs)
Option Explicit
set os = CreateObject("wscript.shell")
Dim Http, szBuf, URL, iDelay, i, OverNum, Nums ,os
szBuf = InputBox( "请输入要刷的网址:", "输入", "http://luobin.blog.51cto.com/" )
URL = Trim(szBuf)
If 0 = Len(URL) Then WScript.Quit
If 2 = MsgBox( "网址为:" & URL & vbCrLf & " 您确定吗?", 32 + 1, "请确认" ) Then WScript.Quit
OverNum = InputBox( "请输入要刷的次数", "输入", "50" )
If IsNumeric(OverNum) Then
NumS = CInt(OverNum)
Else
Wscript.echo "您输入的不是数字!本程序将退出!"
Wscript.Quit
End If
i = 0
os.run URL
Do
wscript.sleep 10000
os.sendkeys "{F5}"
i = i + 1
If i = Nums Then
Msgbox "已经刷完"&i&"次了!"
Exit Do
End If
Loop
转载文章请标明:该文章转自 罗斌原创技术文章:http://luobin44.51.com 〖罗斌原创〗