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.



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

def pfservice
  @pfservice
end

Instance Method Details

#cleanupObject



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

def cleanup
	super

	if pfservice
		pfservice.deref
	end
end