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.



393
394
395
396
# File 'plugins/session_notifier.rb', line 393

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

Instance Method Details

#cleanupObject



398
399
400
# File 'plugins/session_notifier.rb', line 398

def cleanup
  remove_console_dispatcher(name)
end

#descObject



402
403
404
# File 'plugins/session_notifier.rb', line 402

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

#nameObject



389
390
391
# File 'plugins/session_notifier.rb', line 389

def name
  'SessionNotifier'
end