Exemplo n.º 1
0
    def do_debuggable(args):
        """
        Description: Make target APK debuggable

        Requirements: Target APK

        Usage: debuggable <name_of_output_directory> && </path/to/apk>
        """
        try:
            from framework.brains.apk.debuggable import Debuggable
            # Instantiate debuggable
            # module
            #
            d = Debuggable(args.split()[0], args.split()[1])
            d.run_debuggable()
        except ImportError as e:
            print(
                t.red("[{0}] ".format(datetime.now()) +
                      enum.IMPORT_ERROR_DEBUGGABLE))
            Logger.run_logger(e.message)
        except Exception as e:
            if e.message == enum.STRING_INDEX_ERROR or e.message == enum.LIST_INDEX_ERROR:
                print(
                    t.red("[{0}] ".format(datetime.now()) +
                          t.white(enum.ARGUMENTS)))
                print(
                    t.red("[{0}] ".format(datetime.now()) +
                          t.white(enum.DEBUGGABLE_USAGE)))
Exemplo n.º 2
0
    def do_debuggable(args):

        """
        Description: Make target APK debuggable

        Requirements: Target APK

        Usage: debuggable <name_of_output_directory> && </path/to/apk>
        """

        try:
            from framework.brains.apk.debuggable import Debuggable
            d = Debuggable(args.split()[0], args.split()[1])
            d.run_debuggable()
        except ImportError as e:
            print(t.red("[{0}] ".format(datetime.now()) + "Unable to import Debuggable"))
            Logger.run_logger(e.message)
Exemplo n.º 3
0
    def do_debuggable(args):
        """
        Description: Make target APK debuggable

        Requirements: Target APK

        Usage: debuggable <name_of_output_directory> && </path/to/apk>
        """
        try:
            from framework.brains.apk.debuggable import Debuggable

            # Instantiate debuggable
            # module
            #
            d = Debuggable(args.split()[0], args.split()[1])
            d.run_debuggable()
        except ImportError as e:
            print(t.red("[{0}] ".format(datetime.now()) + enum.IMPORT_ERROR_DEBUGGABLE))
            Logger.run_logger(e.message)
        except Exception as e:
            if e.message == enum.STRING_INDEX_ERROR or e.message == enum.LIST_INDEX_ERROR:
                print(t.red("[{0}] ".format(datetime.now()) + t.white(enum.ARGUMENTS)))
                print(t.red("[{0}] ".format(datetime.now()) + t.white(enum.DEBUGGABLE_USAGE)))