Ejemplo 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')
Ejemplo 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)
Ejemplo 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)
Ejemplo 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 = []
Ejemplo 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 = []
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 8
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._optDict = {}
     self._memory = {}
     self._plain_options = {}
     for o in self._options:
         k = o.get_name()
         v = o.get_default_value()
         self._memory[k] = [v]
         self._plain_options[k] = v
         self._optDict[k] = o
     self._groupOptionsByTabId()
     self._load_help('config')
Ejemplo 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._optDict = {}
     self._memory = {}
     self._plain_options = {}
     for o in self._options:
         k = o.get_name()
         v = o.get_default_value()
         self._memory[k] = [v]
         self._plain_options[k] = v
         self._optDict[k] = o
     self._groupOptionsByTabId()
     self._load_help('config')
Ejemplo n.º 10
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'],)
        }
Ejemplo n.º 11
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
            })
Ejemplo n.º 12
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,
            },
        )
Ejemplo n.º 13
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'],
            )
        }
Ejemplo n.º 14
0
 def __init__(self, name, console, w3af_core, parent=None, **other):
     menu.__init__(self, name, console, w3af_core, parent)
     self._load_help('bug-report')
Ejemplo 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')