Skip to content

Instantly share code, notes, and snippets.

@eybisi
Created October 4, 2018 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eybisi/ead15499f4b2d2d5ab696ec2398e1f0e to your computer and use it in GitHub Desktop.
Save eybisi/ead15499f4b2d2d5ab696ec2398e1f0e to your computer and use it in GitHub Desktop.
redalert c2 extract
import lxml.etree as etree
from androguard.core.bytecodes import apk
import sys
def main():
# python x.py name.apk
a = apk.APK(sys.argv[1])
a2 = a.get_android_resources()
b = etree.fromstring(a2.get_string_resources(a.get_package()))
try:
print("C2: ",b[9].text)
except:
pass
main()
#sample d58157cc78b2065732fe9622c266e842e853a4658189a873703031335e6d668b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment