TngRootBypassHook 增强 captcha 诊断、TigerTally/JNIC 分层与 HWUI 策略;新增逆向脚本、Frida 工具与 UI dump;同步 MariBank SG hook 与 tng_exit_guard 更新。
21 lines
511 B
Python
21 lines
511 B
Python
#!/usr/bin/env python3
|
|
import re
|
|
import sys
|
|
import xml.etree.ElementTree as ET
|
|
|
|
path = sys.argv[1]
|
|
root = ET.parse(path).getroot()
|
|
|
|
def center(b):
|
|
m = re.match(r"\[(\d+),(\d+)\]\[(\d+),(\d+)\]", b or "")
|
|
if not m:
|
|
return None
|
|
x1, y1, x2, y2 = map(int, m.groups())
|
|
return (x1 + x2) // 2, (y1 + y2) // 2
|
|
|
|
for n in root.iter("node"):
|
|
t = n.get("text") or ""
|
|
pt = center(n.get("bounds"))
|
|
if pt and 600 <= pt[1] <= 800:
|
|
print(repr(t), pt, "PIN" in t.upper(), "6位" in t)
|