Bootstrap

天猫超市卡绑卡 分析

声明:
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!

逆向过程

headers = {
    "accept": "*/*",
    "accept-language": "zh-CN,zh;q=0.9",
    "cache-control": "no-cache",
    "pragma": "no-cache",
    "referer": "",
    "sec-fetch-dest": "script",
    "sec-fetch-mode": "no-cors",
    "sec-fetch-site": "same-site",
    "user-agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/131.0.0.0"
}
cookies = {}
url = "/mtop.tmall.aselfpromotion.storedvaluecard.cardno.query/1.0/"
params = {
    "jsv": "2.6.1",
    "appKey": s,
    "t": t,
    "sign": sign,
    "api": "mtop.tmall.aselfpromotion.storedvaluecard.cardno.query",
    "v": "1.0",
    "type": "jsonp",
    "method": "GET",
    "dataType": "jsonp",
    "timeout": "20000",
    "disableTracker": "true",
    "preventFallback": "true",
    "isSec": "1",
    "callback": "mtopjsonp7",
    "data": data
}
response = requests.get(url, headers=headers, cookies=cookies, params=params)
print(response.text)

结果

总结

   1.出于安全考虑,本章未提供完整流程,调试环节省略较多,只提供大致思路,具体细节要你自己还原,相信你也能调试出来。

;