山姆会员商店APP协议算法分析(APP商品采集)
声明
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口 等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
有相关问题请第一时间点击头像看简介或私信联系我删除博客!
部分python 代码
body = json.dumps(data, separators=(',', ':'), ensure_ascii=False)
aes_key = get_key_from_srd(SRD)
real_key = decrypt_ssk(SSK, aes_key, SIV)
sign, st = compute_st(time_tamp, body, uuid_hex, real_key=real_key, device=device)
print(f"t = {time_tamp}")
print(f"n = {uuid_hex}")
print(f"treq-id = {gen_treq_id(time_tamp)}")
print(f"device = {device}")
print(f"version = {VERSION}")
print(f"real_key = {real_key}")
print(f"sign = {sign}")
print(f"st = {st}")
headers = build_headers(time_tamp, uuid_hex, st, device=device)
resp = requests.post(url, headers=headers, data=body.encode("utf-8"), timeout=30)
print(resp)
print(resp.text)
return resp