# Path: golismero.py
# class ArgumentParserWithBanner(argparse.ArgumentParser):
# class EnablePluginAction(argparse.Action):
# class DisablePluginAction(argparse.Action):
# class LoadListFromFileAction(argparse.Action):
# class ReadValueFromFileAction(argparse.Action):
# class SetPluginArgumentAction(argparse.Action):
# class QuickHelpAction(argparse._HelpAction):
# class _GitHelper(object):
#     def error(self, message):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
# def cmdline_parser():
#         def profiles_completer(prefix, **kwargs):
#         def plugins_completer(prefix, **kwargs):
# def parse_plugin_args(manager, plugin_args):
# def build_config_from_cmdline():
# def main():
# def command_plugins(parser, P, cmdParams, auditParams):
# def command_info(parser, P, cmdParams, auditParams):
# def command_profiles(parser, P, cmdParams, auditParams):
# def command_dump(parser, P, cmdParams, auditParams):
# def command_load(parser, P, cmdParams, auditParams):
# def command_update(parser, P, cmdParams, auditParams):
#     def __init__(self, verbose):
#     def __call__(self, msg):
#     def did_update(self):
# def command_run(parser, P, cmdParams, auditParams):
# def expand_wildcards(filenames):
# COMMANDS = (
# 
#     # Scanning.
#     "SCAN",
#     "RESCAN",
#     "REPORT",
#     "IMPORT",
# 
#     # Information.
#     "PROFILES",
#     "PLUGINS",
#     "INFO",
# 
#     # Management.
#     "LOAD",
#     "DUMP",
#     "UPDATE",
# )
#         P, V = parser.parse_known_args(args)
# 
# Path: golismero/main/launcher.py
# def run(options, *audits):
# def _run(options, *audits):
# def _sanitize_config(options, audits):


import sys
    import platform
import argparse
import os
import sys
import snakemq
    import sqlite3
    import sqlite3
        import tldextract
    import golismero.patches.mp
    import golismero.api.logger
    import golismero.main.testing
from os import path
from golismero import show_banner
from sys import version_info, exit
from ConfigParser import RawConfigParser
from getpass import getpass
from glob import glob
from os import getenv, getpid
from thread import get_ident
from traceback import format_exc
from golismero.api.config import Config
from golismero.api.external import run_external_tool
from golismero.api.logger import Logger
from golismero.api.plugin import CATEGORIES, STAGES
from golismero.common import OrchestratorConfig, AuditConfig, get_profile, \
     get_available_profiles, get_default_plugins_folder
from golismero.main import launcher
from golismero.main.console import get_terminal_size, colorize, Console
from golismero.main.testing import PluginTester
from golismero.managers.pluginmanager import PluginManager
from golismero.managers.processmanager import PluginContext
        from argcomplete import autocomplete
        from argcomplete.completers import ChoicesCompleter, FilesCompleter
            from golismero import common
        cmdParams.command = P.command
        if P.config:
            cmdParams.config_file = path.abspath(P.config)
            if not path.isfile(cmdParams.config_file):
                raise ValueError("File not found: %s" % cmdParams.config_file)
        if cmdParams.config_file:
            cmdParams.from_config_file(cmdParams.config_file,
                                       allow_profile = True)
        if P.user_config:
            cmdParams.user_config_file = path.abspath(P.user_config)
            if not path.isfile(cmdParams.user_config_file):
                raise ValueError(
                    "File not found: %s" % cmdParams.user_config_file)
        if cmdParams.user_config_file:
            cmdParams.from_config_file(cmdParams.user_config_file,
                                       allow_profile = True)
        if P.profile:
            cmdParams.profile = P.profile
            cmdParams.profile_file = get_profile(cmdParams.profile)
        if cmdParams.profile_file:
            cmdParams.from_config_file(cmdParams.profile_file)
        cmdParams.from_object(P)
        cmdParams.plugin_load_overrides = P.plugin_load_overrides

        # Enable console colors if requested.
        Console.use_colors = cmdParams.color

        # Show the program banner.
        parser.must_show_banner = False
        if cmdParams.verbose:

# Path: golismero.py
# class ArgumentParserWithBanner(argparse.ArgumentParser):
# class EnablePluginAction(argparse.Action):
# class DisablePluginAction(argparse.Action):
# class LoadListFromFileAction(argparse.Action):
# class ReadValueFromFileAction(argparse.Action):
# class SetPluginArgumentAction(argparse.Action):
# class QuickHelpAction(argparse._HelpAction):
# class _GitHelper(object):
#     def error(self, message):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
#     def __call__(self, parser, namespace, values, option_string=None):
# def cmdline_parser():
#         def profiles_completer(prefix, **kwargs):
#         def plugins_completer(prefix, **kwargs):
# def parse_plugin_args(manager, plugin_args):
# def build_config_from_cmdline():
# def main():
# def command_plugins(parser, P, cmdParams, auditParams):
# def command_info(parser, P, cmdParams, auditParams):
# def command_profiles(parser, P, cmdParams, auditParams):
# def command_dump(parser, P, cmdParams, auditParams):
# def command_load(parser, P, cmdParams, auditParams):
# def command_update(parser, P, cmdParams, auditParams):
#     def __init__(self, verbose):
#     def __call__(self, msg):
#     def did_update(self):
# def command_run(parser, P, cmdParams, auditParams):
# def expand_wildcards(filenames):
# COMMANDS = (
# 
#     # Scanning.
#     "SCAN",
#     "RESCAN",
#     "REPORT",
#     "IMPORT",
# 
#     # Information.
#     "PROFILES",
#     "PLUGINS",
#     "INFO",
# 
#     # Management.
#     "LOAD",
#     "DUMP",
#     "UPDATE",
# )
#         P, V = parser.parse_known_args(args)
# 
# Path: golismero/main/launcher.py
# def run(options, *audits):
# def _run(options, *audits):
# def _sanitize_config(options, audits):


# Path: golismero.py
import sys
    import platform
import argparse
import os
import sys
import snakemq
    import sqlite3
    import sqlite3
        import tldextract
    import golismero.patches.mp
    import golismero.api.logger
    import golismero.main.testing
from os import path
from golismero import show_banner
from sys import version_info, exit
from ConfigParser import RawConfigParser
from getpass import getpass
from glob import glob
from os import getenv, getpid
from thread import get_ident
from traceback import format_exc
from golismero.api.config import Config
from golismero.api.external import run_external_tool
from golismero.api.logger import Logger
from golismero.api.plugin import CATEGORIES, STAGES
from golismero.common import OrchestratorConfig, AuditConfig, get_profile, \
     get_available_profiles, get_default_plugins_folder
from golismero.main import launcher
from golismero.main.console import get_terminal_size, colorize, Console
from golismero.main.testing import PluginTester
from golismero.managers.pluginmanager import PluginManager
from golismero.managers.processmanager import PluginContext
        from argcomplete import autocomplete
        from argcomplete.completers import ChoicesCompleter, FilesCompleter
            from golismero import common

        cmdParams.command = P.command
        if P.config:
            cmdParams.config_file = path.abspath(P.config)
            if not path.isfile(cmdParams.config_file):
                raise ValueError("File not found: %s" % cmdParams.config_file)
        if cmdParams.config_file:
            cmdParams.from_config_file(cmdParams.config_file,
                                       allow_profile = True)
        if P.user_config:
            cmdParams.user_config_file = path.abspath(P.user_config)
            if not path.isfile(cmdParams.user_config_file):
                raise ValueError(
                    "File not found: %s" % cmdParams.user_config_file)
        if cmdParams.user_config_file:
            cmdParams.from_config_file(cmdParams.user_config_file,
                                       allow_profile = True)
        if P.profile:
            cmdParams.profile = P.profile
            cmdParams.profile_file = get_profile(cmdParams.profile)
        if cmdParams.profile_file:
            cmdParams.from_config_file(cmdParams.profile_file)
        cmdParams.from_object(P)
        cmdParams.plugin_load_overrides = P.plugin_load_overrides

        # Enable console colors if requested.
        Console.use_colors = cmdParams.color

        # Show the program banner.
        parser.must_show_banner = False
        if cmdParams.verbose:

            show_banner()