Init. Commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
from pathlib import Path
|
||||
import argparse, base64, hashlib, json, lzma, marshal, os, plistlib, re, struct, subprocess, sys, zipfile, zlib
|
||||
|
||||
def xor(data, key):
|
||||
return bytes(b ^ key[i % len(key)] for i, b in enumerate(data))
|
||||
|
||||
def find_after(data, marker):
|
||||
off = data.index(marker) + len(marker)
|
||||
ln = struct.unpack_from('<I', data, off)[0]
|
||||
off += 4
|
||||
return data[off:off+ln]
|
||||
|
||||
def main():
|
||||
ap = argparse.ArgumentParser(); ap.add_argument('apk', nargs='?', default='../public/FvncLiteCourier.apk')
|
||||
args = ap.parse_args()
|
||||
with zipfile.ZipFile(args.apk) as z:
|
||||
dex = z.read('classes.dex')
|
||||
blob = z.read('assets/fvnc_table.bin')
|
||||
key = re.search(rb'fvnc-lite-v4', dex).group(0)
|
||||
cfg = json.loads(xor(blob, key))
|
||||
print(cfg['audit.export'])
|
||||
if __name__ == '__main__': main()
|
||||
Reference in New Issue
Block a user