feat: MariBank 风控 bypass、澳洲银行 Hook 与 reverse 逆向工作区
新增 MariBank/SeaBank PH Root 与 SHPSSDK bypass、riskToken 净化及 Up/Suncorp/ubank 消息 Hook;整理 reverse/ 脚本与 Frida 工具链,并补充当日工作说明文档。
This commit is contained in:
44
reverse/scripts/scan_security_classes.py
Normal file
44
reverse/scripts/scan_security_classes.py
Normal file
@@ -0,0 +1,44 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Scan dex class descriptors for Shopee/SeaBank security SDK."""
|
||||
import re
|
||||
import sys
|
||||
import zipfile
|
||||
|
||||
TARGETS = (
|
||||
"safemode",
|
||||
"SafeMode",
|
||||
"alc/",
|
||||
"ALC",
|
||||
"integrity",
|
||||
"rooted",
|
||||
"jailbroken",
|
||||
"RootBeer",
|
||||
"xposed",
|
||||
"frida",
|
||||
"isRoot",
|
||||
"detectRoot",
|
||||
)
|
||||
|
||||
|
||||
def scan(apk_path):
|
||||
with zipfile.ZipFile(apk_path) as zf:
|
||||
for name in sorted(zf.namelist()):
|
||||
if not name.endswith(".dex"):
|
||||
continue
|
||||
data = zf.read(name)
|
||||
classes = set(re.findall(rb"L[a-zA-Z0-9_$/]+;", data))
|
||||
hits = []
|
||||
for raw in classes:
|
||||
s = raw.decode("ascii", "ignore")
|
||||
low = s.lower()
|
||||
if any(t.lower() in low for t in TARGETS):
|
||||
hits.append(s[1:-1].replace("/", "."))
|
||||
if hits:
|
||||
print("=== %s ===" % name)
|
||||
for h in sorted(set(hits)):
|
||||
print(h)
|
||||
print()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
scan(sys.argv[1])
|
||||
Reference in New Issue
Block a user