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')
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)
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 = []
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 = []
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)
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)
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, 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')
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'],) }
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, w3af_core, parent=None, **other): menu.__init__(self, name, console, w3af_core, parent) self._load_help('bug-report')