美团优选小程序 mtgsig 分析 mtgsig1.2

声明

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

部分python代码

复制代码
openId = ''
appId = ''
result = cp.call('getMtgsig',data1,openId,appId)
mtgsig = result['header']['mtgsig']
print(mtgsig)
headers = {
    'Host': 'thh.meituan.com',
    'charset': 'utf-8',
    'mtgsig': mtgsig,
    'os': 'android',
    'openid': openId,
    'User-Agent': 'Mozilla/5.0 (Linux; Android 13;/android',
    'actuallongitude': '113559297',
    'uuid': '',
    'actuallatitude': '23316682',
    'csecuuid': '',
    'flowtype': '0',
    'content-type': 'application/json',
    'openidcipher': '',
    'Referer': '',
}

params = {
    'protectPrivacy': '0',
    'thhCtype': '',
    'thhVersion': '',
    'sourceCtype': '',
    'deviceVersion': 'Android 11',
    'deviceType': '',
    'sourceVersion': '',
    'entrance': 'miniProgram',
    'thhOuterSource': '3271',
    'thhGSource': '3271',
    'yodaReady': 'wx',
    'csecappid': '',
    'csecplatform': '3',
    'csecversionname': '',
    'csecversion': '1.4.0',
}


response = requests.post('product/v3/detail', params=params, headers=headers, data=data)
print(response.text)

结果

总结

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

相关推荐
哭哭啼19 小时前
pgSql 事务篇
java·数据库·postgresql
架构源启19 小时前
Spring AI进阶系列(17)- 未来展望与职业发展:Java 工程师迈向 AI 工程化与智能体架构的路线图
java·人工智能·spring
我登哥MVP19 小时前
Spring Boot 从“会用”到“精通”:SpringBoot MVC 请求处理全流程
java·spring boot·后端·spring·mvc·maven·intellij-idea
CTA量化套保19 小时前
期货量化临期合约还能不能做:程序化到期禁开与强平写法
python·区块链
我登哥MVP19 小时前
Spring Boot 从“会用”到“精通”:ReturnValueHandler原理
java·spring boot·后端·spring·java-ee·maven·intellij-idea
量化君也19 小时前
快速入门量化交易都要学些什么?
大数据·人工智能·python·算法·金融
吴卫斌19 小时前
行业ETF轮动策略实战(二):精选候选池——打造你的赛道武器库
大数据·python·股票·量化交易
snow@li19 小时前
数据库:MySQL vs PostgreSQL 详尽对比(2026版)
java·mysql·postgresql
小羊Yveesss19 小时前
2026年微信小程序制作工具怎么选?
微信小程序·小程序
Tbisnic19 小时前
AI大模型学习 第十天:让程序“指挥”大模型 —— 从对话到工具调用
人工智能·python·ai·大模型·react·cot·提示词工程