Created
October 4, 2018 11:12
-
-
Save eybisi/e86c5328890d516f8069af463d9225e1 to your computer and use it in GitHub Desktop.
another packed malware c2 extractor
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(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