Class: Rex::Post::Meterpreter::PivotListener

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/post/meterpreter/pivot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id


11
12
13
# File 'lib/rex/post/meterpreter/pivot.rb', line 11

def id
  @id
end

#session_classObject

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

#stageObject

Returns the value of attribute stage


17
18
19
# File 'lib/rex/post/meterpreter/pivot.rb', line 17

def stage
  @stage
end

#urlObject

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_rowObject


26
27
28
# File 'lib/rex/post/meterpreter/pivot.rb', line 26

def to_row
  [self.id.unpack('H*')[0], url, stage]
end