|
基础太弱,只能一点点弄,网站好像和之前不一样了,前面的不能正常登陆了。获取hpid字条串就过不去了,求大师给看看- '/获取hpId字符串 - start
- .Open "POST", "https://member.hipiao.com/hpId.php", False
- .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
- .send ("nickname=18753292305&rand=" & JS.CodeObject.String.rand(64, "18753292305")) '这个为什么得不到正确结果
- '.send ("nickname=18753292305&rand=820832eae6e5311b8cdfd2fd4e46f8eb4da7a1aee126ac241bcde808822f6c52")
- hpid = .responsetext
- 'hpid = "37ffd71c57" '正确的hpid
- MsgBox hpid
- '/获取hpId字符串 - end
复制代码 string.rand(length,nickname)函数我是在https://member.hipiao.com/res/js/mLogin20131218.js这个js里找到的,而且里面有这么一段- if(hpIdMap[nickname]&&hpIdMap[nickname].length>8) return hpIdMap[nickname];
- $.ajax({
- type: "POST",
- url: "/hpId.php",
- data: "nickname=" + nickname + "&rand=" + String.rand(64,nickname),
- success: function(msg){
- hpIdMap[nickname]=$.trim(msg);
- }
- ,async:sync }); // end ajax
- return hpIdMap[nickname];
- };
复制代码 看起来很像我要用的post数据,为啥总是得不到正确结果?,直接用抓包得到的随机64位就能得到正确结果,用JS.CodeObject.String.rand(64, "18753292305")得到的64位随机数就得不到结果,求大师给指点
哈票网 DDAY - 副本.rar
(33.65 KB, 下载次数: 22)
|
|