找回密码
 加入
搜索
查看: 3585|回复: 8

网盘POST登录,谁来帮我分析一下,谢谢

  [复制链接]
发表于 2010-2-4 19:48:29 | 显示全部楼层 |阅读模式

POST /?action=login&goto=http%3A%2F%2Fu.115.com%2F%3Fac%3Dmy HTTP/1.1
Accept: application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, application/x-silverlight, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Referer: http://u.115.com
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Host: my.115.com
Content-Length: 51
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: lstat_bc_1099374=14771717091118710949; AACK=MTI2NTI4MTE1NHw0ZDc1MjJkNDE5NjI1OTQ4NmJkOGRhNzc5MzQyYTJiZQ%3D%3D; lstat_ss_1099374=0_1265310561_2278385138

login%5Baccount%5D=*******&login%5Bpasswd%5D=******

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2010-2-4 22:12:09 | 显示全部楼层
#include <IE.au3>

$oIE = _IECreate ("http://u.115.com/")
$oForm = _IEFormGetObjByName($oIE, "form")
$Email = _IEGetObjById($oIE, "account")
$Email.value = '昵称/Email'
$passwd = _IEGetObjById($oIE, "passwd")
$passwd.value = 'passwd'
$autologin = _IEGetObjByName ($oIE, "autologin")
_IEAction ($autologin, "click")
;还差登陆
_IELoadWait ($oIE)
 楼主| 发表于 2010-2-4 22:29:26 | 显示全部楼层
#include <IE.au3>
$oIE=_IECreate("http://u.115.com/",0,1,1)
$oForm = _IEFormGetCollection ($oIE, 0)
$uname = _IEFormElementGetCollection ($oForm, 0)
_IEFormElementSetValue ($uname, "*****")
$pass=_IEFormElementGetCollection ($oForm, 1)
_IEFormElementSetValue ($pass, "*****")
_IEFormSubmit ($oForm)
_IELoadWait ($oIE)

这种方法我也会写
不过还是谢谢你,
只是想知道怎么样分析这样的数据
写成POST提交数据的格式,
发表于 2010-2-5 01:17:35 | 显示全部楼层
路过 ~!
~!!看看
发表于 2010-2-5 08:32:13 | 显示全部楼层
所有东西你都弄出来了  还分析什么呢??
发表于 2010-2-5 09:12:51 | 显示全部楼层
一楼,你那是什么软件抓的包呀?
 楼主| 发表于 2010-2-5 12:30:37 | 显示全部楼层
回复 5# guland


问题和上次的一样,还是能提交成功,不知道怎么转到登录成功后的页面。
不理解你上次那种提交方式是怎么做到的。我试着摸仿,可是还是不行。
 楼主| 发表于 2010-2-5 15:57:33 | 显示全部楼层
回复 6# boyhong

用HttpWatch
抓的包
发表于 2010-2-5 17:23:36 | 显示全部楼层
路过 ~!
~!!看看
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-22 15:33 , Processed in 0.108026 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表