TngRootBypassHook 增强 captcha 诊断、TigerTally/JNIC 分层与 HWUI 策略;新增逆向脚本、Frida 工具与 UI dump;同步 MariBank SG hook 与 tng_exit_guard 更新。
20 lines
862 B
Python
20 lines
862 B
Python
"""Find NativeLib method signatures / loadLibrary name via dex string proximity."""
|
|
import re
|
|
import zipfile
|
|
from pathlib import Path
|
|
|
|
apk = Path(r"C:\Users\Administrator\Desktop\notiMessage\reverse\apks\tng\base.apk")
|
|
with zipfile.ZipFile(apk) as z:
|
|
for name in z.namelist():
|
|
if not name.endswith(".dex"):
|
|
continue
|
|
data = z.read(name)
|
|
if b"NativeLib" not in data and b"native-lib" not in data:
|
|
continue
|
|
print("===", name, "===")
|
|
for pat in [b"NativeLib", b"native-lib", b"getApiSixSecretKeys", b"RetrieveFromNativeLibs", b"Lcom/tngd/networksdk"]:
|
|
for m in re.finditer(pat, data):
|
|
ctx = data[max(0, m.start()-60):m.end()+100]
|
|
ctx = bytes(c if 32 <= c < 127 else 46 for c in ctx)
|
|
print(pat.decode(), "@", m.start(), ":", ctx.decode())
|