Class: Arachni::RPC::Server::Plugin::Manager
- Inherits:
-
Plugin::Manager
- Object
- Hash
- Component::Manager
- Plugin::Manager
- Arachni::RPC::Server::Plugin::Manager
- Defined in:
- lib/arachni/rpc/server/plugin/manager.rb
Overview
We need to extend the original Manager and redeclare its inherited methods which are required over RPC.
Constant Summary
Constants inherited from Plugin::Manager
Plugin::Manager::DEFAULT, Plugin::Manager::NAMESPACE
Constants inherited from Component::Manager
Component::Manager::EXCLUDE, Component::Manager::WILDCARD
Instance Attribute Summary
Attributes inherited from Component::Manager
Instance Method Summary collapse
- #load(plugins) ⇒ Object
-
#merge_results(results) ⇒ Object
Merges the plug-in results of multiple instances by delegating to Data::Plugins#merge_results.
Methods inherited from Plugin::Manager
#block, #busy?, #create, #data, #default, #initialize, #job_names, #jobs, #kill, #killall, #load_default, reset, #reset, #restore, #results, #run, #sane_env?, #schedule, #state, #suspend
Methods inherited from Component::Manager
#[], #available, #clear, #delete, #include?, #initialize, #load_all, #load_by_tags, #loaded, #matches_glob?, #matches_globs?, #name_to_path, #parse, #path_to_name, #paths, #prepare_options
Methods included from Utilities
#available_port, available_port_mutex, #bytes_to_kilobytes, #bytes_to_megabytes, #caller_name, #caller_path, #cookie_decode, #cookie_encode, #cookies_from_file, #cookies_from_parser, #cookies_from_response, #exception_jail, #exclude_path?, #follow_protocol?, #form_decode, #form_encode, #forms_from_parser, #forms_from_response, #full_and_absolute_url?, #generate_token, #get_path, #hms_to_seconds, #html_decode, #html_encode, #include_path?, #links_from_parser, #links_from_response, #normalize_url, #page_from_response, #page_from_url, #parse_set_cookie, #path_in_domain?, #path_too_deep?, #port_available?, #rand_port, #random_seed, #redundant_path?, #regexp_array_match, #remove_constants, #request_parse_body, #seconds_to_hms, #skip_page?, #skip_path?, #skip_resource?, #skip_response?, #to_absolute, #uri_decode, #uri_encode, #uri_parse, #uri_parse_query, #uri_parser, #uri_rewrite
Methods included from UI::Output
#debug?, #debug_level_1?, #debug_level_2?, #debug_level_3?, #debug_level_4?, #debug_off, #debug_on, #disable_only_positives, #included, #mute, #muted?, #only_positives, #only_positives?, #print_bad, #print_debug, #print_debug_backtrace, #print_debug_level_1, #print_debug_level_2, #print_debug_level_3, #print_debug_level_4, #print_error, #print_error_backtrace, #print_exception, #print_info, #print_line, #print_ok, #print_status, #print_verbose, #reroute_to_file, #reroute_to_file?, reset_output_options, #unmute, #verbose?, #verbose_on
Methods inherited from Hash
#apply_recursively, #downcase, #find_symbol_keys_recursively, #my_stringify, #my_stringify_keys, #my_symbolize_keys, #recode, #recode!, #stringify_recursively_and_freeze
Constructor Details
This class inherits a constructor from Arachni::Plugin::Manager
Instance Method Details
#load(plugins) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/arachni/rpc/server/plugin/manager.rb', line 29 def load( plugins ) if plugins.is_a?( Array ) h = {} plugins.each { |p| h[p] = @framework..plugins[p] || {} } plugins = h end plugins.each do |plugin, opts| ( plugin, self[plugin], opts ) end @framework..plugins.merge!( plugins ) super( plugins.keys ) end |
#merge_results(results) ⇒ Object
Merges the plug-in results of multiple instances by delegating to Data::Plugins#merge_results.
46 47 48 |
# File 'lib/arachni/rpc/server/plugin/manager.rb', line 46 def merge_results( results ) Data.plugins.merge_results self, results end |