抓包得到的 post 数据
aid:202550601
utt:1262
platform:b6c13e26323c537d
cid:afbe8fd3d73448c9
deviceId:bdf02d37c4c65b2db2f787488f876e59
playType:main
uuid:bdf02d37c4c65b2db2f787488f876e59
v:57649d8c27a7dcd4784792219953c168
version:1.0
vid:73ae4fcc72ed61eae9f0ced13d80623f
ut:1443833658083
下面是 flash 里面的计算方式,根据其他值算出 v 值
try
{
this._holder.runtimeData.authenticationError = false;
s = uint(0 ^ 2391461978).toString();
ut = new Date().time;
uts = ut.toString();
utt = String(ut % 1000 * int(uts.substr(0, 2)) + (100 + this._segmentIndex));
MdStr = this._holder.runtimeData.albumId + "_" + this._holder.runtimeData.communicationlId + "_" + this._holder.runtimeData.vid + "_" + uts + "_" + utt + "_" + s;
vt = com.qiyi.player.base.utils.MD5.calculate(MdStr);
this._log.debug("primitive MD5 String :" + MdStr);
this._log.debug("MD5 String:" + vt);
request = new flash.net.URLRequest(com.qiyi.player.core.Config.VIP_AUTH_URL);
variables = new flash.net.URLVariables();
variables.ut = ut;
variables.vid = this._holder.runtimeData.vid;
variables.cid = this._holder.runtimeData.communicationlId;
variables.aid = this._holder.runtimeData.albumId;
variables.utt = utt;
variables.v = vt;
variables.version = "1.0";
if (!(com.qiyi.player.user.impls.UserManager.getInstance().user && com.qiyi.player.user.impls.UserManager.getInstance().user.P00001))
{
};
variables.uuid = com.qiyi.player.base.uuid.UUIDManager.instance.uuid;
variables.deviceId = com.qiyi.player.base.uuid.UUIDManager.instance.uuid;
if (this._holder.runtimeData.playerType)
{
variables.playType = this._holder.runtimeData.playerType.name;
}
variables.platform = "b6c13e26323c537d";
request.method = flash.net.URLRequestMethod.POST;
request.data = variables;
}
大概就是
aid + "" + cid + "" + vid + "" + uts + "" + utt + "_" + uint(0 ^ 2391461978).toString();
md5('202550601'.''.'afbe8fd3d73448c9'.''.'73ae4fcc72ed61eae9f0ced13d80623f'.''.'1443833658083'.''.'1262'.'_'.abs(0 ^ 2391461978));
算出来的值和 v 值不一样,哪错了
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.