Module: Rex::Post::Meterpreter::Ui::Console::CommandDispatcher::Stdapi::Net::PortForwardTracker

Defined in:
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb

Overview

This module is used to extend the meterpreter session so that local port forwards can be tracked and cleaned up when the meterpreter session goes away

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pfserviceObject

Returns the value of attribute pfservice.



35
36
37
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb', line 35

def pfservice
  @pfservice
end

Instance Method Details

#cleanupObject



27
28
29
30
31
32
33
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb', line 27

def cleanup
  super

  if pfservice
    pfservice.deref
  end
end