Skip to content

Instantly share code, notes, and snippets.

@eybisi
Created October 4, 2018 11:12
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/e86c5328890d516f8069af463d9225e1 to your computer and use it in GitHub Desktop.
Save eybisi/e86c5328890d516f8069af463d9225e1 to your computer and use it in GitHub Desktop.
another packed malware c2 extractor
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(b[2].text)
except:
pass
main()
#sample 93be0ce0b6e3c9f214aed5ac27541580d5a21cefde43118ce871f8dbf409eca8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment