Class: Msf::Plugin::SessionNotifier

Inherits:
Msf::Plugin show all
Includes:
SessionEvent
Defined in:
plugins/session_notifier.rb

Defined Under Namespace

Classes: Exception, SessionNotifierCommandDispatcher

Instance Attribute Summary

Attributes inherited from Msf::Plugin

#opts

Attributes included from Framework::Offspring

#framework

Instance Method Summary collapse

Methods included from SessionEvent

#on_session_close, #on_session_command, #on_session_download, #on_session_filedelete, #on_session_interact, #on_session_open, #on_session_output, #on_session_upload

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) ⇒ SessionNotifier

Returns a new instance of SessionNotifier.


237
238
239
240
# File 'plugins/session_notifier.rb', line 237

def initialize(framework, opts)
  super
  add_console_dispatcher(SessionNotifierCommandDispatcher)
end

Instance Method Details

#cleanupObject


242
243
244
# File 'plugins/session_notifier.rb', line 242

def cleanup
  remove_console_dispatcher(name)
end

#descObject


250
251
252
# File 'plugins/session_notifier.rb', line 250

def desc
  'This plugin notifies you a new session via SMS.'
end

#nameObject


233
234
235
# File 'plugins/session_notifier.rb', line 233

def name
  'SessionNotifier'
end