Exemple #1
0
def main(args):
    apk = APK(args.p)

    if args.m:
        import json
        if apk.get_manifest():
            print(json.dumps(apk.get_manifest(), indent=1))
        elif apk.get_org_manifest():
            print(apk.get_org_manifest())

    elif args.s:
        for item in apk.get_strings():
            print(binascii.unhexlify(item).decode(errors='ignore'))

    elif args.f:
        for item in apk.get_files():
            print(item)

    elif args.c:
        for item in apk.get_certs():
            print(item)
Exemple #2
0
 def __init__(self, apk: APK):
     content = apk.get_org_manifest()
     self._dom = minidom.parseString(content)
     self._permissions = None
     self._apk = apk