Esempio n. 1
0
 def __init__(self, name, console, w3af, parent=None):
     menu.__init__(self, name, console, w3af, parent)
     self._profiles = {}
     instance_list, invalid_profiles = w3af.profiles.get_profile_list()
     for _profile in instance_list:
         self._profiles[_profile.get_name()] = _profile
     self._load_help('profiles')
Esempio n. 2
0
    def __init__(self, name, console, w3af, parent):
        menu.__init__(self, name, console, w3af, parent)
        types = w3af.plugins.get_plugin_types()
        self._children = {}

        self._load_help('plugins')

        for t in types:
            self.addChild(t, pluginsTypeMenu)
#            self._help.add_help_entry(t, "List %s plugins" % t, 'plugins')
        self.__loadPluginTypesHelp(types)
Esempio n. 3
0
    def __init__(self, name, console, w3af, parent):
        menu.__init__(self, name, console, w3af, parent)
        types = w3af.plugins.get_plugin_types()
        self._children = {}

        self._load_help('plugins')

        for t in types:
            self.addChild(t, pluginsTypeMenu)
#            self._help.add_help_entry(t, "List %s plugins" % t, 'plugins')
        self.__loadPluginTypesHelp(types)
Esempio n. 4
0
    def __init__(self, name, console, w3af, parent=None):
        menu.__init__(self, name, console, w3af, parent)

        self._configs = {}
        for plugin_name in self._w3af.plugins.get_plugin_list("attack"):
            plugin = self._w3af.plugins.get_plugin_inst("attack", plugin_name)
            config = ConfigMenu(plugin_name, self._console, self._w3af, self, plugin)
            self._configs[plugin_name] = config
        self._load_help("exploit")

        # A list with the proxy and shell objects
        self._exploit_results = []
Esempio n. 5
0
    def __init__(self, name, console, w3af, parent=None):
        menu.__init__(self, name, console, w3af, parent)

        self._configs = {}
        for plugin_name in self._w3af.plugins.get_plugin_list('attack'):
            plugin = self._w3af.plugins.get_plugin_inst('attack', plugin_name)
            config = ConfigMenu(plugin_name, self._console, self._w3af, self,
                                plugin)
            self._configs[plugin_name] = config
        self._load_help('exploit')

        # A list with the proxy and shell objects
        self._exploit_results = []
Esempio n. 6
0
 def __init__(self, name, console, w3af, parent):
     menu.__init__(self, name, console, w3af, parent)
     plugins = w3af.plugins.get_plugin_list(name)
     self._plugins = {}  # name to number of options
     for p in plugins:
         try:
             options = self._w3af.plugins.get_plugin_inst(
                 self._name, p).get_options()
         except Exception, e:
             om.out.error('Error while reading plugin options: "%s"' % e)
             sys.exit(-8)
         else:
             self._plugins[p] = len(options)
Esempio n. 7
0
 def __init__(self, name, console, w3af, parent):
     menu.__init__(self, name, console, w3af, parent)
     plugins = w3af.plugins.get_plugin_list(name)
     self._plugins = {}  # name to number of options
     for p in plugins:
         try:
             options = self._w3af.plugins.get_plugin_inst(self._name,
                                                          p).get_options()
         except Exception, e:
             om.out.error('Error while reading plugin options: "%s"' % e)
             sys.exit(-8)
         else:
             self._plugins[p] = len(options)
Esempio n. 8
0
    def __init__(self, name, console, core, parent=None):
        menu.__init__(self, name, console, core, parent)
        self._load_help('root')

        #   At first, there is no scan thread
        self._scan_thread = None

        mapDict(self.addChild, {
            'plugins': pluginsMenu,
            'target': (ConfigMenu, self._w3af.target),
            'misc-settings': (ConfigMenu, MiscSettings()),
            'http-settings': (ConfigMenu, self._w3af.uri_opener.settings),
            'profiles': ProfilesMenu,
            'bug-report': bug_report_menu,
            'exploit': exploit,
            'kb': kbMenu
        })
Esempio n. 9
0
    def __init__(self, name, console, w3af, parent, configurable):
        menu.__init__(self, 'config:' + name, console, w3af, parent)

        self._configurable = configurable
        self._options = self._configurable.get_options()
        self._unsaved_options = {}
        self._opt_dict = {}
        self._memory = {}

        for o in self._options:
            k = o.get_name()
            v = o.get_default_value()
            self._memory[k] = [v]
            self._opt_dict[k] = o

        self._group_options_by_tabid()
        self._load_help('config')
Esempio n. 10
0
    def __init__(self, name, console, w3af, parent, configurable):
        menu.__init__(self, 'config:' + name, console, w3af, parent)

        self._configurable = configurable
        self._options = self._configurable.get_options()
        self._unsaved_options = {}
        self._opt_dict = {}
        self._memory = {}

        for o in self._options:
            k = o.get_name()
            v = o.get_default_value()
            self._memory[k] = [v]
            self._opt_dict[k] = o

        self._group_options_by_tabid()
        self._load_help('config')
Esempio n. 11
0
    def __init__(self, name, console, w3afcore, parent=None, **other):
        menu.__init__(self, name, console, w3afcore, parent)
        self._load_help('kb')

        # A mapping of KB data types to how to display it.
        # Key of the data type => (KB getter, (column names), (column getters))k
        self.__getters = {
            'vulns': (
                kb.kb.get_all_vulns,
                ['Vulnerability', 'Description'],),
            'info': (
                kb.kb.get_all_infos,
                ['Info', 'Description'],),
            'shells': (
                kb.kb.get_all_shells,
                ['Shells', 'Description'],)
        }
Esempio n. 12
0
    def __init__(self, name, console, w3afcore, parent=None, **other):
        menu.__init__(self, name, console, w3afcore, parent)
        self._load_help('kb')

        # A mapping of KB data types to how to display it.
        # Key of the data type => (KB getter, (column names), (column getters))k
        self.__getters = {
            'vulns': (
                kb.kb.get_all_vulns,
                ['Vulnerability', 'Description'],),
            'info': (
                kb.kb.get_all_infos,
                ['Info', 'Description'],),
            'shells': (
                kb.kb.get_all_shells,
                ['Shells', 'Description'],)
        }
Esempio n. 13
0
    def __init__(self, name, console, core, parent=None):
        menu.__init__(self, name, console, core, parent)
        self._load_help('root')

        #   At first, there is no scan thread
        self._scan_thread = None

        mapDict(self.addChild, {
            'plugins': pluginsMenu,
            'target': (ConfigMenu, self._w3af.target),
            'misc-settings': (ConfigMenu, MiscSettings()),
            'http-settings': (ConfigMenu, self._w3af.uri_opener.settings),
            'profiles': ProfilesMenu,
            'bug-report': bug_report_menu,
            'exploit': exploit,
            'kb': kbMenu
        })
    def __init__(self, name, console, core, parent=None):
        menu.__init__(self, name, console, core, parent)
        self._load_help("root")

        #   At first, there is no scan thread
        self._scan_thread = None

        mapDict(
            self.addChild,
            {
                "plugins": pluginsMenu,
                "target": (ConfigMenu, self._w3af.target),
                "misc-settings": (ConfigMenu, MiscSettings()),
                "http-settings": (ConfigMenu, self._w3af.uri_opener.settings),
                "profiles": profilesMenu,
                "bug-report": bug_report_menu,
                "exploit": exploit,
                "kb": kbMenu,
            },
        )
Esempio n. 15
0
 def __init__(self, name, console, w3af_core, parent=None, **other):
     menu.__init__(self, name, console, w3af_core, parent)
     self._load_help('bug-report')
Esempio n. 16
0
 def __init__(self, name, console, w3af_core, parent=None, **other):
     menu.__init__(self, name, console, w3af_core, parent)
     self._load_help('bug-report')