def do_components(args): """ Description: Enumerate components for target APK Requirements: Loaded APK Usage: components """ try: from framework.brains.apk.enumeration.components import Components if globals()["apk"] is not None: # Instantiate components # module # c = Components(globals()["apk"]) c.enum_component() else: print( t.red("[{0}] ".format(datetime.now())) + t.white(enum.MODULE_UNAVAILABLE)) print( t.red("[{0}] ".format(datetime.now())) + t.white(enum.COMPONENTS_MODULE_MESSAGE)) except ImportError as e: print( t.red("[{0}] ".format(datetime.now()) + enum.IMPORT_ERROR_COMPONENTS)) Logger.run_logger(e.message)
def do_components(args): """ Description: Enumerate components for target APK Requirements: Loaded APK Usage: permissions """ try: from framework.brains.apk.enumeration.components import Components c = Components(globals()["apk"]) c.enum_component() except ImportError as e: print(t.red("[{0}] ".format(datetime.now()) + "Unable to import Components")) Logger.run_logger(e.message)
def do_components(args): """ Description: Enumerate components for target APK Requirements: Loaded APK Usage: permissions """ try: from framework.brains.apk.enumeration.components import Components c = Components(globals()["apk"]) c.enum_component() except ImportError as e: print( t.red("[{0}] ".format(datetime.now()) + "Unable to import Components")) Logger.run_logger(e.message)
def do_components(args): """ Description: Enumerate components for target APK Requirements: Loaded APK Usage: permissions """ try: from framework.brains.apk.enumeration.components import Components if globals()["apk"] is not None: c = Components(globals()["apk"]) c.enum_component() else: print(t.red("[{0}] ".format(datetime.now())) + t.white("Module not available")) print(t.red("[{0}] ".format(datetime.now())) + t.white("You cannot run the components module without a loaded APK")) except ImportError as e: print(t.red("[{0}] ".format(datetime.now()) + "Unable to import Components")) Logger.run_logger(e.message)
def do_components(args): """ Description: Enumerate components for target APK Requirements: Loaded APK Usage: components """ try: from framework.brains.apk.enumeration.components import Components if globals()["apk"] is not None: # Instantiate components # module # c = Components(globals()["apk"]) c.enum_component() else: print(t.red("[{0}] ".format(datetime.now())) + t.white(enum.MODULE_UNAVAILABLE)) print(t.red("[{0}] ".format(datetime.now())) + t.white(enum.COMPONENTS_MODULE_MESSAGE)) except ImportError as e: print(t.red("[{0}] ".format(datetime.now()) + enum.IMPORT_ERROR_COMPONENTS)) Logger.run_logger(e.message)