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-b9f4589650daunstable
parent
49d34d048f
commit
a9a4e3f2da
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue