计算qtoken的js代码

#coding:utf-8
list1 = [119, 98, 115, 33, 103, 101, 113, 98, 
110, 62, 92, 50, 49, 58, 45, 50, 50, 54, 45, 
50, 51, 51, 45, 50, 50, 52, 45, 50, 50, 52, 
45, 50, 50, 52, 45, 50, 49, 50, 45, 50, 50, 
51, 45, 50, 50, 58, 45, 50, 50, 49, 45, 50, 
50, 49, 45, 50, 49, 55, 45, 50, 49, 55, 45, 
50, 49, 58, 45, 50, 49, 50, 45, 50, 50, 54, 
45, 50, 49, 50, 45, 50, 49, 50, 45, 50, 49, 
50, 45, 50, 50, 54, 45, 50, 49, 50, 45, 50, 
49, 58, 94, 60, 119, 98, 115, 33, 113, 111, 
117, 118, 100, 62, 92, 50, 57, 45, 50, 54, 
45, 56, 45, 50, 50, 45, 50, 56, 45, 57, 45, 
58, 45, 51, 45, 53, 45, 52, 45, 50, 52, 45, 
50, 45, 49, 45, 51, 50, 45, 50, 49, 45, 50, 
53, 45, 50, 55, 45, 55, 45, 50, 51, 45, 54, 
45, 50, 58, 45, 51, 49, 94, 60, 119, 98, 115, 
33, 111, 62, 35, 35, 60, 103, 112, 115, 33, 
41, 116, 62, 49, 60, 116, 61, 113, 111, 117, 
118, 100, 47, 109, 102, 111, 104, 117, 105, 
60, 116, 44, 44, 42, 124, 111, 44, 62, 84, 
117, 115, 106, 111, 104, 47, 103, 115, 112, 
110, 68, 105, 98, 115, 68, 112, 101, 102, 41, 
103, 101, 113, 98, 110, 92, 113, 111, 117, 118, 
100, 92, 116, 94, 94, 42, 126, 60, 37, 47, 100, 
112, 112, 108, 106, 102, 41, 40, 114, 117, 112, 
108, 102, 111, 51, 49, 50, 55, 40, 45, 111, 45, 
124, 113, 98, 117, 105, 59, 40, 48, 40, 126, 42, 60]


计算出用于计算qtoken的js代码
s = ''
for x in list1:

    s+= chr(x-1)
print(s)



计算qtoken的值
import re
import json
# 筛选数据数组和索引数据
pat = re.compile('fdpam=(.*?);.*?pntuc=(.*?);')

rs = re.search(pat,s)

if rs:

    qtoken2016 = ''
    sources = json.loads(rs.group(1))
    indexs = json.loads(rs.group(2))
    # 遍历根据索引取出数据,拼接字符
    for i in indexs:
        qtoken2016 += chr(sources[i])
    # 拿到qtoken
    print(qtoken2016)

最后输出的结果:

















猜你喜欢

转载自blog.csdn.net/qq_41664526/article/details/79948000
今日推荐