Class: Rex::Post::Meterpreter::PivotListener
- Inherits:
-
Object
- Object
- Rex::Post::Meterpreter::PivotListener
- Defined in:
- lib/rex/post/meterpreter/pivot.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#session_class ⇒ Object
Returns the value of attribute session_class.
-
#stage ⇒ Object
Returns the value of attribute stage.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(session_class, url, stage) ⇒ PivotListener
constructor
A new instance of PivotListener.
- #to_row ⇒ Object
Constructor Details
#initialize(session_class, url, stage) ⇒ PivotListener
Returns a new instance of PivotListener.
19 20 21 22 23 24 |
# File 'lib/rex/post/meterpreter/pivot.rb', line 19 def initialize(session_class, url, stage) self.id = [SecureRandom.uuid.gsub(/-/, '')].pack('H*') self.session_class = session_class self.url = url self.stage = stage end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/rex/post/meterpreter/pivot.rb', line 11 def id @id end |
#session_class ⇒ Object
Returns the value of attribute session_class.
13 14 15 |
# File 'lib/rex/post/meterpreter/pivot.rb', line 13 def session_class @session_class end |
#stage ⇒ Object
Returns the value of attribute stage.
17 18 19 |
# File 'lib/rex/post/meterpreter/pivot.rb', line 17 def stage @stage end |
#url ⇒ Object
Returns the value of attribute url.
15 16 17 |
# File 'lib/rex/post/meterpreter/pivot.rb', line 15 def url @url end |
Instance Method Details
#to_row ⇒ Object
26 27 28 |
# File 'lib/rex/post/meterpreter/pivot.rb', line 26 def to_row [self.id.unpack('H*')[0], url, stage] end |