Skip to content

Instantly share code, notes, and snippets.

@quanhua92
quanhua92 / unmkbundle.py
Created January 21, 2017 06:30 — forked from maldroid/unmkbundle.py
A script to unbundle the mkbundle result. Just run it with the libmonodroid_bundle_app.so (or similar) file as a parameter
import sys, gzip
from cStringIO import StringIO
from elftools.elf.elffile import ELFFile
elffile = ELFFile(open(sys.argv[1]))
data = open(sys.argv[1]).read()
is_mkbundle = False
section = elffile.get_section_by_name('.dynsym')