Class: Msf::Plugin::Aggregator

Inherits:
Msf::Plugin show all
Defined in:
plugins/aggregator.rb

Defined Under Namespace

Classes: AggregatorCommandDispatcher

Instance Attribute Summary

Attributes inherited from Msf::Plugin

#opts

Attributes included from Framework::Offspring

#framework

Instance Method Summary collapse

Methods inherited from Msf::Plugin

#add_console_dispatcher, create, #flush, #input, #output, #print, #print_error, #print_good, #print_line, #print_status, #print_warning, #remove_console_dispatcher

Constructor Details

#initialize(framework, opts) ⇒ Aggregator

Plugin initialization


498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
# File 'plugins/aggregator.rb', line 498

def initialize(framework, opts)
  super

  #
  # Require the metasploit/aggregator gem, but fail nicely if it's not there.
  #
  begin
    require "metasploit/aggregator"
  rescue LoadError
    raise "WARNING: metasploit/aggregator is not avaiable for now."
  end

  add_console_dispatcher(AggregatorCommandDispatcher)
  print_status("Aggregator interaction has been enabled")
end

Instance Method Details

#cleanupObject


514
515
516
# File 'plugins/aggregator.rb', line 514

def cleanup
  remove_console_dispatcher('Aggregator')
end

#descObject


522
523
524
# File 'plugins/aggregator.rb', line 522

def desc
  "Interacts with the external Session Aggregator"
end

#nameObject


518
519
520
# File 'plugins/aggregator.rb', line 518

def name
  "aggregator"
end