一名匿名开发者因不满健身房官方应用程序强制嵌入社交媒体功能,决定对该应用进行逆向工程,并最终成功构建了一个独立的网页工具来生成入场二维码 1。该开发者利用人工智能模型辅助完成技术攻关,具体使用了 GLM 5.3 和 DeepSeek v4.1 Flash,其中发现 DeepSeek 在处理效率上优于 GLM 1。
通过深入分析应用的 Flutter 代码以及 Android 系统的日志文件,开发者确认了二维码的生成逻辑完全在本地运行,这意味着即使设备处于断网状态,生成的有效代码仍可在接下来的 N 天内使用 1。为了提取关键的技术材料,开发者使用了一台已获取 Root 权限的安卓手机并通过 ADB(Android Debug Bridge)连接,从明文日志文件中捕获了必要数据 1。
研究发现,官方 App 中的二维码每 15 秒刷新一次,且由于 FLAG_SECURE 属性的存在,用户无法直接对屏幕内容进行截图 1。其内部结构包含编码后的账户句柄、经 AES-128-CTR 算法加密的过期时间戳、随机 nonce 值以及校验和,这一过程需要分别用于加密和校验的两个秘密密钥配合完成 1。基于上述逆向得到的核心逻辑,开发者最终使用 SvelteKit 框架构建了一款 Web 应用,能够独立生成符合要求的入场二维码,从而彻底绕过了原应用中令人困扰的社交媒体干扰环节 1。
An anonymous developer reverse-engineered a gym’s mobile application to circumvent mandatory social media features imposed by the fitness chain 1. Frustrated by the requirement to engage with social functions, the individual utilized artificial intelligence tools, specifically GLM 5.3 and DeepSeek v4.1 Flash, to assist in analyzing the app's code 1. The project culminated in the creation of an independent SvelteKit-based web application that successfully generates valid entry QR codes, allowing access without interacting with the official app’s interface 1.
The technical process revealed that the gym’s QR codes refresh every 15 seconds and cannot be screenshotted due to the FLAG_SECURE restriction on Android devices 1. Further analysis confirmed that the code generation logic operates locally, meaning valid credentials could still be produced even after network disconnection for a certain number of days 1. The underlying structure of these codes consists of an encoded account handle, an encrypted expiration timestamp, a random nonce, and a checksum 1. To replicate this functionality, the developer employed AES-128-CTR encryption for the expiration data, which required extracting two distinct secret keys—one for encryption and one for validation—using a rooted Android phone connected via ADB to access plaintext log files 1.
评论
还没有评论,欢迎留下第一条。