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

相关推荐
程序员Bears44 分钟前
SSM整合:Spring+SpringMVC+MyBatis完美融合实战指南
java·spring·mybatis
liuyang-neu3 小时前
黑马点评双拦截器和Threadlocal实现原理
java
csdn_aspnet3 小时前
Java 程序求圆弧段的面积(Program to find area of a Circular Segment)
java·开发语言
一蓑烟雨,一任平生4 小时前
基于 uni-app + <movable-view>拖拽实现的标签排序-适用于微信小程序、H5等多端
微信小程序·小程序·uni-app
佩奇的技术笔记4 小时前
Python入门手册:Python中的数据结构类型
数据结构·python
UzumakiHan4 小时前
微信小程序一次性订阅封装
微信小程序·小程序
Magnum Lehar5 小时前
vulkan游戏引擎vulkan部分的fence实现
java·前端·游戏引擎
on the way 1235 小时前
创建型模式之Factory Method(工厂方法)
android·java·工厂方法模式
梁下轻语的秋缘5 小时前
Python人工智能算法 模拟退火算法求解01背包问题:从理论到实践的完整攻略
人工智能·python·算法·数学建模·模拟退火算法
无心水5 小时前
【后端高阶面经:MongoDB篇】41、MongoDB 是怎么做到高可用的?
java·开发语言·mongodb·java面试·高可用·后端高阶面经·后端工程师的高阶面经