# -*- coding: utf-8 -*-
import re
import zipfile

APK = r"C:\Users\Administrator\Desktop\notiMessage\reverse\apks\seabank_ph_base.apk"
needles = [
    b"SPSRiskTokenCallback",
    b"SPSResultCallback",
    b"SPSCallback",
    b"getRiskToken",
    b"riskToken",
    b"RiskToken",
    b"assessRisk",
    b"AssessRisk",
]
with zipfile.ZipFile(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 hits:
            print(name, hits)
