|
本帖最后由 sdc7 于 2012-1-9 16:07 编辑
这里是 抓包的HERADER
Content-Length 572
Accept application/x-shockwave-flash, image/gif, image/jpeg, image/pjpeg, image/pjpeg, */*
Content-Type application/x-www-form-urlencoded
Accept-Encoding gzip, deflate
Referer http://register.sdo.com/gaea/inp ... amp;zone=IdRequired
Connection Keep-Alive
User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Cache-Control no-cache
(Request-Line) POST /gaea/input_pt.aspx?from=2&zone=IdRequired HTTP/1.1
Cookie REG_GAEA_FROM=2; beacon_visit_count=4; allow_pt_access=1; PhoneRegType_Page=phone_default.aspx; JSESSIONID=z6uq78i5yzgv1h276z5cp8k9f; sdo_beacon_id=61.54.198.239.1325861300146.1; CaptchaSeq=80zEkmikUiroZfoU; b_t_s=t125861300718xs
Host register.sdo.com
Accept-Language zh-cn
这里是 POST的数据
agent 6
agent4IpCheck checkIp 21
answer1 8
answer2 8
apptype 8
attcode2 n45vp6 15
birthday 9
chkAgreement on 15
chkPromoRegSpreadr 1 20
chksdid false 13
ctype 6
goldtype 9
hidExinfo 10
hidRecName001 14
hidRecName002 14
hidRecRule001 14
hidRecRule002 14
idcard 360103195106130049 25
mobile 7
nick_sex 9
nickname 9
partner 8
password uu5201314 18
phone 6
PromoterID 没有可不填 56
ptType 0 8
PTUserEmailId kok1017@11.cn 30
qqaccount 10
question1 10
question2 10
realname 陈网 27
regsdid 8
sessionid 10
showPTInfoSection 18
txtRegisterFrom 2 17
txtRegisterZone IdRequired 26
username de123882012 20
这个盛大的POST 注册过程 但是提交老是 不支持注册方式 不知道是哪的错误,求专家给分析下·
用的POST的UDF
Global $MyOpen=_WinHttpOpen()
Global $ieee1=_WinHTTP_GetRespond($MyOpen,"http://g.aa.sdo.com/?slot=200490&output=json&sdk=js&method=dest&fn=_SNYU_.AA.analysis&url=http%3A%2F%2Fregister.sdo.com%2Fgaea%2Fphone_default.aspx%3Ffrom%3D2%26zone%3DIdRequired&sv=1.0.0.2",2+4+64+256,6000)
If @error Then Return MsgBox(0,@error,"获取官方COOKIE错误,请尝试重启程序")
Global $ieee1_sid=StringRegExpReplace($ieee1[3],"(sdo_beacon_id=.*?;).*","$1") ;提取Cookies JSESSIONID
MsgBox(1,"sdo_beacon_id",$ieee1_sid)
Global $ieee=_WinHTTP_GetRespond($MyOpen,"http://register.sdo.com/gaea/input_pt.aspx?from=2&zone=IdRequired",2+4+64+256,6000,"","allow_pt_access=1;")
If @error Then Return MsgBox(0,@error,"获取官方COOKIE错误,请尝试重启程序")
Global $ieee_sid=StringRegExpReplace($ieee[3],"(JSESSIONID=.*?;).*","$1") ;提取Cookies
MsgBox(1,"JSESSIONID",$ieee_sid)
$xzr_str=StringRegExp(BinaryToString($ieee[0],4),'gvANQUANImgUrl="(.*?)image_type=0',1)
$rContext=_WinHTTP_GetRespond($MyOpen,$xzr_str[0]&"image_type=0",2+4+64+256,9000)
If @error Then Return MsgBox(0,@error,"获取验证码错误,请尝试重启程序")
$CodeFile = FileOpen(@ScriptDir & "\code.jpg",10)
;FileWrite($CodeFile,Binary($rContext[0]))
FileWrite($CodeFile,$rContext[0])
FileClose($CodeFile)
GUICtrlSetImage($Pic1,@ScriptDir & "\code.jpg")
Global $xzr_sid=StringRegExpReplace($rContext[3],"(CaptchaSeq=.*?;).*","$1") ;提取Cookies
$url="http://register.sdo.com/gaea/input_pt.aspx?from=2&zone=IdRequired";提交地址
;$url="http://register.sdo.com/PTNew/input_pt.aspx?from=2&zone=IdRequired"
$schar="agent4IpCheck=checkIp&chkAgreement=on&chkPromoRegSpreadr=1&chksdid=false&txtRegisterFrom=2&ptType=0&PromoterID=没有可不填&txtRegisterZone=IdRequired&attcode2="&GUICtrlRead($hedit1)&"&username="&$users&"&realname="&$username&"&PTUserEmailId="&$emal&"&password="&$password&"&idcard="&$userid
$header="Accept:application/x-shockwave-flash, image/gif, image/jpeg, image/pjpeg, image/pjpeg, */* @CRLF Accept-Encoding:gzip, deflate @CRLF Accept-Language:zh-cn @CRLF Cache-Control:no-cache @CRLF Connection:Keep-Alive @CRLF Content-Type:application/x-www-form-urlencoded @CRLF Host:register.sdo.com @CRLF Referer:http://register.sdo.com/gaea/inp ... amp;zone=IdRequired @CRLF User-Agent:Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)"
GUICtrlSetData($hedit1,"")
GUICtrlSetState($hedit1,$GUI_FOCUS)
$rContext2=_WinHTTP_GetRespond($MyOpen,$url,1 + 2 + 4 + 256,12000,$schar,"REG_GAEA_FROM=2; beacon_visit_count=4; allow_pt_access=1; PhoneRegType_Page=phone_default.aspx; b_t_s=t125861300718xs"&$ieee1_sid&$xzr_sid&$ieee_sid,$header)
If @error Then
Return MsgBox(1,@Error,@Error)
Else
FileWriteLine("测试6.htm",BinaryToString($rContext2[0],4))
AdlibRegister ("jianyan")
EndIf |
|