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

相关推荐
该用户已不存在23 分钟前
PHP、Python、Node.js,谁能称霸2025?
python·node.js·php
luckys.one24 分钟前
第12篇|[特殊字符] Freqtrade 交易所接入全解:API、WebSocket、限频配置详解
网络·ide·python·websocket·网络协议·flask·流量运营
沧澜sincerely38 分钟前
Redis 键空间 & 五大类型
java·redis·docker
Pocker_Spades_A39 分钟前
Python快速入门专业版(四十六):Python类的方法:实例方法、类方法、静态方法与魔术方法
开发语言·python
2351640 分钟前
【LeetCode】3. 无重复字符的最长子串
java·后端·算法·leetcode·职场和发展
nandao15842 分钟前
springBoot 集成Neo4j 实战演示
java·spring boot·neo4j
零雲1 小时前
java面试:可以讲一讲sychronized和ReentrantLock的异同点吗
java·开发语言·面试
没有bug.的程序员1 小时前
SQL 执行计划解析:从 EXPLAIN 到性能优化的完整指南
java·数据库·sql·性能优化·explain·执行计划
cRack_cLick1 小时前
pandas库学习02——基本数据清洗
python·pandas
yubo05091 小时前
YOLO系列——实时屏幕检测
开发语言·windows·python