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


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

def pfservice
  @pfservice
end

Instance Method Details

#cleanupObject


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

def cleanup
  super

  if pfservice
    pfservice.deref
  end
end