美团优选小程序 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.出于安全考虑,本章未提供完整流程,调试环节省略较多,只提供大致思路,具体细节要你自己还原,相信你也能调试出来。

相关推荐
论文复现现场9 分钟前
企业知识库 RAG 用什么模型便宜?GLM-5.3-Flash 长文本 API 实测
python·rag·企业知识库·大模型api·glm-5.3-flash
需要82613 分钟前
MySQL 索引 B+ 树与“查询为什么变慢了
java·spring boot·spring·spring cloud·tomcat
一 乐15 分钟前
二手交易平台|基于springboot + vue二手交易平台(源码+数据库+文档)
java·数据库·vue.js·spring boot·小程序
万年咸鱼19 分钟前
编译Java源程序
java
梦在远山后30 分钟前
从手写 Loop 到可恢复 Runtime:用 LangGraph、PostgreSQL Checkpoint 与 AG-UI 跑通中断恢复
python·langchain·agent
Wang's Blog34 分钟前
Java 项目实战: 外卖平台-删除分类的关联校验与自定义业务异常
java·服务器·项目开发
hai_android42 分钟前
Kotlin / Android 常用函数使用示例手册
android·java·kotlin
Yolanda_20221 小时前
8.tensorboard的使用
python
MayBaymax1 小时前
MongoDB 索引与事务
java·数据库·mongodb
用户0332126663671 小时前
使用 Python 添加、隐藏或删除 PowerPoint 幻灯片
python