新增 MariBank/SeaBank PH Root 与 SHPSSDK bypass、riskToken 净化及 Up/Suncorp/ubank 消息 Hook;整理 reverse/ 脚本与 Frida 工具链,并补充当日工作说明文档。
27 lines
724 B
Python
27 lines
724 B
Python
# -*- coding: utf-8 -*-
|
|
import re
|
|
import zipfile
|
|
from pathlib import Path
|
|
|
|
APK = Path(__file__).resolve().parent.parent / "apks" / "seabank_ph_base.apk"
|
|
needles = [
|
|
b"getRiskTokenAsync",
|
|
b"getRiskToken",
|
|
b"getRiskSync",
|
|
b"getRiskAsync",
|
|
b"assessRisk",
|
|
]
|
|
with zipfile.ZipFile(str(APK)) as zf:
|
|
for name in zf.namelist():
|
|
if not name.endswith(".dex"):
|
|
continue
|
|
data = zf.read(name)
|
|
hits = [n.decode() for n in needles if n in data]
|
|
if not hits:
|
|
continue
|
|
print(name, hits)
|
|
for m in re.finditer(
|
|
rb"Lcom/shopee/shpssdk(?:bank)?/SHPSSDK;\.(\w+):\([^)]+\)[^;]+;", data
|
|
):
|
|
print(" ", m.group().decode())
|