feat: MariBank 风控 bypass、澳洲银行 Hook 与 reverse 逆向工作区
新增 MariBank/SeaBank PH Root 与 SHPSSDK bypass、riskToken 净化及 Up/Suncorp/ubank 消息 Hook;整理 reverse/ 脚本与 Frida 工具链,并补充当日工作说明文档。
This commit is contained in:
24
reverse/scripts/scan_risk_fields.py
Normal file
24
reverse/scripts/scan_risk_fields.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
APK = Path(__file__).resolve().parent.parent / "apks" / "seabank_ph_base.apk"
|
||||
with zipfile.ZipFile(str(APK)) as zf:
|
||||
data = b"".join(zf.read(n) for n in zf.namelist() if n.endswith(".dex"))
|
||||
for needle in [b"riskToken", b"risk_token", b"deviceToken", b"secToken", b"shpsToken", b"mobileNo", b"phoneNo"]:
|
||||
print(needle.decode(), data.count(needle))
|
||||
print("\n--- context riskToken ---")
|
||||
idx = 0
|
||||
while True:
|
||||
idx = data.find(b"riskToken", idx)
|
||||
if idx < 0:
|
||||
break
|
||||
ctx = data[max(0, idx - 60): idx + 120]
|
||||
for m in re.finditer(rb"[\x20-\x7e]{3,60}", ctx):
|
||||
s = m.group().decode("latin1")
|
||||
if any(k in s.lower() for k in ["risk", "token", "mobile", "phone", "register", "device"]):
|
||||
print(" ", s)
|
||||
idx += 1
|
||||
if idx > 5000000:
|
||||
break
|
||||
Reference in New Issue
Block a user