vbs调用InternetExplorer.Application代码记录

这是一段网上“踩”百度空间的vbs代码,其实可以演变出来做论坛灌水机,当然带验证码识别的就不行了!

On Error Resume Next

‘你的百度hi空间网址
str=”http://hi.baidu.com/xxxxxx”

Set Wshell=WScript.CreateObject(“WScript.Shell”)

Set ie=WScript.CreateObject(“InternetExplorer.Application”)

ie.visible=true

ie.navigate “https://passport.baidu.com/?login”
Do

Wscript.Sleep 200

Loop Until ie.ReadyState=4

ie.document.getElementById(“username”).value=”你的百度hi空间登录用户”

ie.document.getElementById(“password”).value=”你的百度hi空间登录密码”

tj=ie.document.getElementsBytagname(“form”)

tj.submit

其实vbs作为windows的shell语言很不错的,能调用很多东西,数据库也能调用了

关于无聊人

一个无聊人而已
此条目发表在技术生活分类目录,贴了标签。将固定链接加入收藏夹。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注