lib/rex/post/meterpreter/client.rb in librex-0.0.4 vs lib/rex/post/meterpreter/client.rb in librex-0.0.5
- old
+ new
@@ -66,9 +66,12 @@
#
# Cleans up the meterpreter instance, terminating the dispatcher thread.
#
def cleanup_meterpreter
+ ext.aliases.each_value do | extension |
+ extension.cleanup if extension.respond_to?( 'cleanup' )
+ end
dispatcher_thread.kill if dispatcher_thread
end
#
# Initializes the meterpreter client instance