美团 小程序 mtgsig

声明

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

部分python代码

复制代码
cp = execjs.compile(open('mtgsig.js','r',encoding='gbk', errors='ignore').read())
mtgsig = cp.call('getMtgsig', data1)
print(mtgsig)
headers = {
    "mtgsig": mtgsig,
    "openid": result['openId'],
    "openidPlt": result['openIdPlt'],
    "dpid": result['openId'],
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) UnifiedPCWindowsWechat(0xf254160e) XWEB/18151",
}
response = requests.get(url, headers=headers, params=params)

print(response.text)
print(response)
复制代码
cp = execjs.compile(open('mtgsig.js','r',encoding='gbk', errors='ignore').read())
mtgsig = cp.call('getMtgsig', data1)
print(mtgsig)
headers = {
    "mtgsig": mtgsig,
    "openid": result['openId'],
    "openidPlt": result['openIdPlt'],
    "dpid": result['openId'],
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) UnifiedPCWindowsWechat(0xf254160e) XWEB/18151",
}
response = requests.get(url, headers=headers, params=params)

print(response.text)
print(response)

结果

总结

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

相关推荐
BatyTao19 小时前
Python从零起步-数据容器
开发语言·python
所谓伊人,在水一方33320 小时前
【Python数据科学实战之路】第5章 | 数据可视化基础:用Matplotlib讲好数据故事
python·信息可视化·matplotlib
NGC_661121 小时前
Java基础面试题2
java·开发语言·python
vx-程序开发21 小时前
springboot具备推荐和预警机制的大学生兼职平台的设计与实现-计算机毕业设计源码17157
java·c++·spring boot·python·spring·django·php
EnCi Zheng21 小时前
11a. 阿里云大模型API调用基础
人工智能·python·阿里云·云计算
qq_124987075321 小时前
基于springboot的驾校预约管理小程序(源码+论文+部署+安装)
spring boot·微信小程序·小程序·毕业设计·计算机毕业设计·毕业设计源码
MoRanzhi120321 小时前
Pillow 图像算术运算与通道计算
图像处理·人工智能·python·计算机视觉·pillow·图像差异检测·图像算术运算
怪侠_岭南一只猿1 天前
爬虫阶段三实战练习题二:使用 Selenium 模拟爬取拉勾网职位表
css·爬虫·python·selenium·html
前端付豪1 天前
自动学习建议解决薄弱知识点
前端·python·openai
deephub1 天前
LangGraph vs Semantic Kernel:状态图与内核插件的两条技术路线对比
人工智能·python·深度学习·大语言模型·agent