Created
October 4, 2018 11:10
-
-
Save eybisi/ead15499f4b2d2d5ab696ec2398e1f0e to your computer and use it in GitHub Desktop.
redalert c2 extract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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