Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)
Esempio n. 5
0
    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)