feat: MariBank 风控 bypass、澳洲银行 Hook 与 reverse 逆向工作区
新增 MariBank/SeaBank PH Root 与 SHPSSDK bypass、riskToken 净化及 Up/Suncorp/ubank 消息 Hook;整理 reverse/ 脚本与 Frida 工具链,并补充当日工作说明文档。
This commit is contained in:
31
reverse/scripts/dump_error_handler.py
Normal file
31
reverse/scripts/dump_error_handler.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import subprocess
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
APK = Path(__file__).resolve().parent.parent / "apks" / "seabank_ph_base.apk"
|
||||
DEXDUMP = Path(r"C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\37.0.0\dexdump.exe")
|
||||
targets = [
|
||||
"Lcom/shopee/bke/biz/user/errorcodehandler/b;",
|
||||
"Lcom/shopee/bke/biz/user/errorcodehandler/b$a;",
|
||||
"Lcom/shopee/bke/biz/user/errorcodehandler/a;",
|
||||
]
|
||||
tmp = Path(__file__).resolve().parent.parent / "tmp" / "tmp6.dex"
|
||||
with zipfile.ZipFile(str(APK)) as zf:
|
||||
tmp.write_bytes(zf.read("classes6.dex"))
|
||||
out = subprocess.check_output([str(DEXDUMP), "-d", str(tmp)], universal_newlines=True, errors="replace")
|
||||
for target in targets:
|
||||
print("=" * 60, target)
|
||||
capture = False
|
||||
lines = 0
|
||||
for line in out.splitlines():
|
||||
if f"Class descriptor : '{target}'" in line:
|
||||
capture = True
|
||||
elif capture and line.startswith(" Class descriptor") and target not in line:
|
||||
break
|
||||
if capture:
|
||||
if "name :" in line or "type :" in line or "Class descriptor" in line:
|
||||
print(line.strip())
|
||||
lines += 1
|
||||
if lines > 200:
|
||||
break
|
||||
Reference in New Issue
Block a user