VB操作路由器
VB操作路由器 大家有什么好方法 网上找了好多资料,就是没VB的。。。有个VC的还看不懂 大家顶起来
我的路由器是 tp-LINK 型号的
抓了几个有用的包
本帖最后由 hack0215 于 2010-1-11 18:45 编辑
登陆失败的
GET / HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQPinyin 686)
Host: 192.168.1.1
Connection: Keep-Alive
Authorization: Basic YWRtaW46YWRtaW5h
HTTP/1.1 401 N/A
Server: TP-LINK Router
Connection: close
WWW-Authenticate: Basic realm="TP-LINK SOHO Router R402M"
Content-Type: text/html
Web Server Error Report:<HR>
<H1>Server Error: 401 N/A</H1>
<P><HR><H2>Access denied</H2><P><P><HR><H1>/userRpm/index.htm</H1><P><HR>please mail problems to support@tp-link.com.cn
登陆成功的
GET / HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQPinyin 686)
Host: 192.168.1.1
Connection: Keep-Alive
Authorization: Basic YWRtaW46YWRtaW4=
HTTP/1.1 200 OK
Server: TP-LINK Router
Connection: close
WWW-Authenticate: Basic realm="TP-LINK SOHO Router R402M"
<HTML><HEAD><TITLE>TL-R402M SOHO 宽带路由器</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content=no-cache http-equiv=pragma>
<META content="wed, 26 Feb 1997 08:21:57 GMT" http-equiv=expires>
</HEAD>
<FRAMESET border="0" rows="94,*" cols="*" frameBorder="NO" frameSpacing="0" >
<FRAMESET border="0" rows="*" cols="185,*" frameBorder="NO" frameSpacing="0" >
<FRAME name="topLeftFrame" src="/frames/logo.htm" scrolling="no" noResize>
<FRAME name="topRightFrame"src="/userRpm/BannerRpm.htm" scrolling="no"noResize>
</FRAMESET>
<FRAMESET border="0" rows="*" cols="155,30,*" frameBorder="NO" frameSpacing="0" >
<FRAME name="bottomLeftFrame"src="/userRpm/MenuRpm.htm?MainID=Z&SubID=0" scrolling="no"noResize>
<FRAME name="arcFrame" src="/frames/arc.htm" scrolling="no"noResize>
<FRAME name="mainFrame" src="/userRpm/MainRpm.htm">
</FRAMESET>
</FRAMESET>
<noframes><BODY>对不起,您的浏览器不支持框架!</BODY></noframes>
<HEAD><META content=no-cache http-equiv=pragma></HEAD></HTML> 老大 来帮帮忙 这就是标准的HTTP过程啊....
问题的关键应该不是判断登录的成功与否,而是如何输入账号密码.....
你既然已经在抓了,就把一个完整的手工登录过程抓下来分析呗... 对啊 就是没办法提交登陆马哥处处主意 把整个包发上来看看
你手工正常登录,然后将登录过程抓上来
我这里的路由器没密码,没办法抓
估计弹出的密码框,也是在HTML代码里给出的指令,只是IE内核解析后弹出实体了而已. 哈 我已经搞定了 呵呵 好东西要支持!!
你一定要体验的游戏,很不错问道推广人 操作路由器,主要关注这个参数 Authorization:+Basic+YWRtaW46YWRtaW4=,每次提交数据都带上就行了,这是用户名和密码的Base64码,也是路由器的操作验证码
这个学习了………… ni你使用XMLHTTP简单点 可以带帐号和密码 post帐密,弄到cookie再get
get以后继续截包
页:
[1]