Module: Msf::SessionEvent
- Included in:
- FrameworkEventSubscriber, Plugin::AutoAddRoute, Plugin::CredCollect, Plugin::EventLibnotify, Plugin::EventRSS, Plugin::EventSounds, Plugin::SessionNotifier, Plugin::SessionTagger, Ui::Console::FrameworkEventManager, Ui::Web::Comm::SessionEventSubscriber
- Defined in:
- lib/msf/core/session_event.rb
Overview
Event notifications that affect sessions.
Instance Method Summary collapse
-
#on_session_close(session, reason = '') ⇒ Object
Called when a session is closed.
-
#on_session_command(session, command) ⇒ Object
Called when the user writes data to a session.
-
#on_session_download(session, remote_path, local_path) ⇒ Object
Called when a file is downloaded.
-
#on_session_filedelete(session, path) ⇒ Object
Called when a file is deleted.
-
#on_session_interact(session) ⇒ Object
Called when the user interacts with a session.
-
#on_session_open(session) ⇒ Object
Called when a session is opened.
-
#on_session_output(session, output) ⇒ Object
Called when output comes back from a user command.
-
#on_session_upload(session, local_path, remote_path) ⇒ Object
Called when a file is uploaded.
Instance Method Details
#on_session_close(session, reason = '') ⇒ Object
Called when a session is closed.
18 19 |
# File 'lib/msf/core/session_event.rb', line 18 def on_session_close(session, reason='') end |
#on_session_command(session, command) ⇒ Object
Called when the user writes data to a session.
30 31 |
# File 'lib/msf/core/session_event.rb', line 30 def on_session_command(session, command) end |
#on_session_download(session, remote_path, local_path) ⇒ Object
Called when a file is downloaded.
48 49 |
# File 'lib/msf/core/session_event.rb', line 48 def on_session_download(session, remote_path, local_path) end |
#on_session_filedelete(session, path) ⇒ Object
Called when a file is deleted.
54 55 |
# File 'lib/msf/core/session_event.rb', line 54 def on_session_filedelete(session, path) end |
#on_session_interact(session) ⇒ Object
Called when the user interacts with a session.
24 25 |
# File 'lib/msf/core/session_event.rb', line 24 def on_session_interact(session) end |
#on_session_open(session) ⇒ Object
Called when a session is opened.
12 13 |
# File 'lib/msf/core/session_event.rb', line 12 def on_session_open(session) end |
#on_session_output(session, output) ⇒ Object
Called when output comes back from a user command.
36 37 |
# File 'lib/msf/core/session_event.rb', line 36 def on_session_output(session, output) end |
#on_session_upload(session, local_path, remote_path) ⇒ Object
Called when a file is uploaded.
42 43 |
# File 'lib/msf/core/session_event.rb', line 42 def on_session_upload(session, local_path, remote_path) end |