From 6325735ecea3cef9cc6a6cd244feef5a6f6f36be Mon Sep 17 00:00:00 2001 From: MemRelay Date: Mon, 9 Nov 2026 10:16:03 +0800 Subject: [PATCH] =?UTF-8?q?create:=20=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=B7=B2=E6=89=93=E9=80=9A=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20os=20=E4=B8=8E=20versionCode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:punchlog-decision-password-login-20261109 MemRelay-Resource: 3f0fc0a7-a8d8-4ad0-a361-449f39ad3071 --- ...密码登录已打通:修正 os 与 versionCode.md | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/a84c6646-289e-46f8-b0f9-41317c651955/账号密码登录已打通:修正 os 与 versionCode.md diff --git a/projects/a84c6646-289e-46f8-b0f9-41317c651955/账号密码登录已打通:修正 os 与 versionCode.md b/projects/a84c6646-289e-46f8-b0f9-41317c651955/账号密码登录已打通:修正 os 与 versionCode.md new file mode 100644 index 0000000..911a56e --- /dev/null +++ b/projects/a84c6646-289e-46f8-b0f9-41317c651955/账号密码登录已打通:修正 os 与 versionCode.md @@ -0,0 +1,35 @@ +--- +title: 账号密码登录已打通:修正 os 与 versionCode +type: decision +permalink: main/projects/a84c6646-289e-46f8-b0f9-41317c651955/账号密码登录已打通修正-os-与-version-code +stable_id: 3f0fc0a7-a8d8-4ad0-a361-449f39ad3071 +scope: project +memory_type: decision +project_id: a84c6646-289e-46f8-b0f9-41317c651955 +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: punchlog-decision-password-login-20261109 +created_at: '2026-11-09T02:16:01.313560+00:00' +updated_at: '2026-11-09T02:16:01.313560+00:00' +tags: +- login +- auth +- device +--- + +2026-11-09 用手机上的真实设备身份对过 SSOTokenRequest 构造默认值后,账号密码登录已成功,不再依赖 ADB 抓 token。 + +之前 100301「用户设备无效」不是设备没绑定。device/check 对这台手机返回 status=0(NORMAL)。登录报文和 APP 不一致的是: +- os 必须是 2(Kotlin 省略参数的默认值),不是 0。 +- versionCode 省略时走 SSOConstant.getVersionCode(),安装包是 120805,不是 0。 +- androidId 是 AID_ 加本地 uuid。 +- deviceName 默认是 Build.BRAND + '-' + Build.MODEL,即 Redmi-25053RT47C。 +- secretKey、accountId、token 省略时默认是空字符串,Gson 仍会序列化。 +- clientIp 只要非空 IPv4。APP 用 Wi-Fi 地址,没连 Wi-Fi 时是 0.0.0.0。 + +设备号来自 MMKV icenter_device_id:两个卡槽都是 V02_ 加同一串。deviceNum = imei0;imei1;AID_uuid。 +登录接口仍是 POST https://mdm.zte.com.cn/emp/zte-itp-emp-sso/login/pwd,MSA 加密。成功响应 bo 含 token、secretKey、ttl、gracePeriod、user。 +代码在 src/punchlog/auth.py。已用新 token 拉到 2026-11-09 的打卡内容。 + +手机清理:/data/local/tmp 里 11 月 6 日的 frida-server、内存 dex、证书绑定脚本和临时文件已删除。证书 bind mount 本来就没有生效。留下 dalvik-cache 和 keybox_update,日期早于这次分析,不是这次放的。 \ No newline at end of file