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

data = open(r"C:\Users\Administrator\Desktop\notiMessage\reverse\extracted\classes6.dex", "rb").read()
classes = set()
for m in re.finditer(rb"Lcom/shopee/bke/lib/safemode/[a-zA-Z0-9_$/]+;", data):
    s = m.group().decode()[1:-1].replace("/", ".")
    if "R$" in s:
        continue
    classes.add(s)
for c in sorted(classes):
    print(c)

print("\n--- interesting strings ---")
for pat in [b"isRoot", b"jailbroken", b"rooted", b"SafeMode", b"checkRoot", b"detect", b"xposed", b"frida", b"integrity"]:
    if pat in data:
        print(pat.decode(), "YES")
