解析流程
通过全局搜索apikey可以发现x-apikey全在一个地方


大致的流程就是对api_key转成列表,然后转字符串在拼接上后后八位,然后又加入时间戳和和一些随机的数字,最后生成x-apikey

使用python生成:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| def get_api(): key = "a2c903cc-b31e-4547-9299-b6d07b7631ab" key_list = list(key) n = key_list[:8] result_list = key_list[8:] + n result_key = "".join(result_list) times = int(time.time() * 1000) e = list(str(times + 1111111111111)) e.append(str(random.randint(0, 10))) e.append(str(random.randint(0, 10))) e.append(str(random.randint(0, 10))) result_key2 = "".join(e) end_key = result_key + "|" + result_key2 print(end_key) api = base64.b64encode(end_key.encode("utf-8")) print(api) return api
|