版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/inforstack/article/details/82791594
Note:根据js分析得到QQ空间的g_tk算法
Note:获取到cookie,判断cookie中是否有p_skey,没有使用skey;点击传送到JS
function getToken(c) {
var obj = JSON.parse("{\"" + c.replace(/=/g,"\":\"").replace(/; /g,"\",\"") + "\"}");
var v = obj.p_skey || obj.skey;
var t = 5381;
for (var r = 0, o = v.length; r < o; ++r) {
t += (t << 5) + v.charAt(r).charCodeAt();
}
return t & 2147483647;
}
Note:根据cookie获取到g_tk;