diff --git a/modules/auxiliary/admin/smb/ntdsgrab.rb b/modules/auxiliary/admin/smb/ntdsgrab.rb index ed37b01b47..af569ce3cd 100644 --- a/modules/auxiliary/admin/smb/ntdsgrab.rb +++ b/modules/auxiliary/admin/smb/ntdsgrab.rb @@ -262,6 +262,7 @@ class Metasploit3 < Msf::Auxiliary else print_status("#{peer} - Cleanup was successful") end + simple.disconnect("\\\\#{@ip}\\#{@smbshare}") end end