Class: Ronin::PostEx::Sessions::Session
- Inherits:
-
Object
- Object
- Ronin::PostEx::Sessions::Session
- Defined in:
- lib/ronin/post_ex/sessions/session.rb
Overview
Base class for all post-exploitation session classes.
Direct Known Subclasses
Instance Method Summary collapse
-
#close ⇒ Object
abstract
Closes the session.
-
#name ⇒ String
The session name.
-
#system ⇒ System
The remote system connected to the session.
-
#to_s ⇒ String
Converts the session to a String.
Instance Method Details
#close ⇒ Object
This method is abstract.
Closes the session.
57 58 |
# File 'lib/ronin/post_ex/sessions/session.rb', line 57 def close end |
#name ⇒ String
The session name.
39 40 41 |
# File 'lib/ronin/post_ex/sessions/session.rb', line 39 def name @name || raise(NotImplementedError,"#{self.class}#name was not set") end |
#system ⇒ System
The remote system connected to the session.
48 49 50 |
# File 'lib/ronin/post_ex/sessions/session.rb', line 48 def system @system ||= System.new(self) end |
#to_s ⇒ String
Converts the session to a String.
66 67 68 |
# File 'lib/ronin/post_ex/sessions/session.rb', line 66 def to_s name end |