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.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.
22 23 |
# File 'lib/msf/core/session.rb', line 22 def on_session_close(session, reason='') end |
#on_session_command(session, command) ⇒ Object
Called when the user writes data to a session.
34 35 |
# File 'lib/msf/core/session.rb', line 34 def on_session_command(session, command) end |
#on_session_download(session, remote_path, local_path) ⇒ Object
Called when a file is downloaded.
52 53 |
# File 'lib/msf/core/session.rb', line 52 def on_session_download(session, remote_path, local_path) end |
#on_session_filedelete(session, path) ⇒ Object
Called when a file is deleted.
58 59 |
# File 'lib/msf/core/session.rb', line 58 def on_session_filedelete(session, path) end |
#on_session_interact(session) ⇒ Object
Called when the user interacts with a session.
28 29 |
# File 'lib/msf/core/session.rb', line 28 def on_session_interact(session) end |
#on_session_open(session) ⇒ Object
Called when a session is opened.
16 17 |
# File 'lib/msf/core/session.rb', line 16 def on_session_open(session) end |
#on_session_output(session, output) ⇒ Object
Called when output comes back from a user command.
40 41 |
# File 'lib/msf/core/session.rb', line 40 def on_session_output(session, output) end |
#on_session_upload(session, local_path, remote_path) ⇒ Object
Called when a file is uploaded.
46 47 |
# File 'lib/msf/core/session.rb', line 46 def on_session_upload(session, local_path, remote_path) end |