Add meterpreter client side support for cleaning up loaded extensions upon server termination by calling the loaded extensions cleanup() method if available.

git-svn-id: file:///home/svn/framework3/trunk@10055 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Stephen Fewer 2010-08-19 11:37:22 +00:00
parent 49d34d048f
commit a9a4e3f2da
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ class Client
# 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