chore: 备份 TNG 注册/captcha 逆向与 MariBank SG bypass 进展
TngRootBypassHook 增强 captcha 诊断、TigerTally/JNIC 分层与 HWUI 策略;新增逆向脚本、Frida 工具与 UI dump;同步 MariBank SG hook 与 tng_exit_guard 更新。
This commit is contained in:
21
reverse/scripts/find_crypto_manager_class.py
Normal file
21
reverse/scripts/find_crypto_manager_class.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
APK = Path(__file__).resolve().parent.parent / "apks" / "maribank_sg_base.apk"
|
||||
with zipfile.ZipFile(str(APK)) as zf:
|
||||
d = b"".join(zf.read(n) for n in zf.namelist() if n.endswith(".dex"))
|
||||
|
||||
for needle in [b"CharacterCryptoManager", b"CharacterCryptoManagerWrapper", b"NativeEncryptUtilsWrapper"]:
|
||||
print("\n===", needle.decode(), "===")
|
||||
for m in re.finditer(re.escape(needle) + rb"[\w$]{0,30}", d):
|
||||
name = m.group().decode()
|
||||
if "$" in name or name.endswith("Wrapper") or name.endswith("Manager"):
|
||||
pass
|
||||
for m in re.finditer(rb"Lcom/[^;]{0,200}" + re.escape(needle) + rb"[^;]{0,20};", d):
|
||||
print(m.group().decode()[1:-1].replace("/", "."))
|
||||
|
||||
# also search for class ending with .d
|
||||
for m in re.finditer(rb"Lcom/shopee/bke/lib/jni/utils/[a-z];", d):
|
||||
print("short utils:", m.group().decode()[1:-1].replace("/", "."))
|
||||
Reference in New Issue
Block a user