# -*- coding: utf-8 -*-
import re
from pathlib import Path

SO = Path(__file__).resolve().parent.parent / "extracted" / "native" / "libshpssdk_bank.so"
data = SO.read_bytes()
seen = set()
for m in re.finditer(rb"[\x20-\x7e]{3,}", data):
    s = m.group().decode("latin1")
    if s in seen or len(s) > 200:
        continue
    low = s.lower()
    if any(k in low for k in [
        "proc", "root", "hook", "xposed", "magisk", "frida", "emulator",
        "risk", "token", "su", "debug", "maps", "version", "selinux",
        "shpssdk", "detect", "jail", "integrity"
    ]):
        seen.add(s)
        print(s)
