コード例 #1
0
ファイル: profiles.py プロジェクト: chenbremer/w3af-1
 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')
コード例 #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)
コード例 #3
0
ファイル: plugins.py プロジェクト: 3rdDegree/w3af
    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)
コード例 #4
0
ファイル: exploit.py プロジェクト: Daisymei/w3af
    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 = []
コード例 #5
0
ファイル: exploit.py プロジェクト: nolank86/w3af
    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 = []
コード例 #6
0
ファイル: plugins.py プロジェクト: 3rdDegree/w3af
 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)
コード例 #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)
コード例 #8
0
ファイル: rootMenu.py プロジェクト: ZionOps/w3af
    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
        })
コード例 #9
0
ファイル: config.py プロジェクト: webvul/webfuzzer
    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')
コード例 #10
0
ファイル: config.py プロジェクト: 0x554simon/w3af
    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')
コード例 #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'],)
        }
コード例 #12
0
ファイル: kbMenu.py プロジェクト: 0x554simon/w3af
    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'],)
        }
コード例 #13
0
ファイル: rootMenu.py プロジェクト: webvul/webfuzzer
    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
        })
コード例 #14
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,
            },
        )
コード例 #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')
コード例 #16
0
ファイル: bug_report.py プロジェクト: Daisymei/w3af
 def __init__(self, name, console, w3af_core, parent=None, **other):
     menu.__init__(self, name, console, w3af_core, parent)
     self._load_help('bug-report')