声明
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
逆向过程
部分python代码
cp = execjs.compile(open('token1002.js', 'r', encoding='utf-8').read()) token = cp.call('getToken',data1) print(token) headers = { 'authority': 'm.ctrip.com', 'accept': '*/*', 'accept-language': 'zh-CN,zh;q=0.9', 'content-type': 'application/json', 'cookie': ';', 'referer': '', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'cross-site', 'token': token, 'user-agent': '', 'x-ctx-currency': 'CNY', 'x-ctx-group': 'ctrip', 'x-ctx-locale': 'zh-CN', 'x-ctx-personal-recommend': '1', 'x-ctx-region': 'CN', 'x-ctx-ubt-pageid': '', 'x-ctx-ubt-pvid': '11', 'x-ctx-ubt-sid': '2', 'x-ctx-ubt-vid': '', 'x-wx-include-credentials': 'env', 'x-wx-openid': '', 'xweb_xhr': '1', } params = { '_fxpcqlniredt': '', } response = requests.post('/policyListSearch', params=params, headers=headers, json=json_data) print(response.text)