Class: Msf::Plugin::Aggregator

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

Overview

This plugin provides management and interaction with an external session aggregator.

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



488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
# File 'plugins/aggregator.rb', line 488

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



504
505
506
# File 'plugins/aggregator.rb', line 504

def cleanup
  remove_console_dispatcher('Aggregator')
end

#descObject



512
513
514
# File 'plugins/aggregator.rb', line 512

def desc
  'Interacts with the external Session Aggregator'
end

#nameObject



508
509
510
# File 'plugins/aggregator.rb', line 508

def name
  'aggregator'
end