From edf2804bb5f101a87febebc0e98a329c2e235c94 Mon Sep 17 00:00:00 2001 From: Royce Davis Date: Wed, 13 Mar 2013 19:23:22 -0500 Subject: [PATCH] Added simple.disconnect to end of cleanup_after method --- modules/auxiliary/admin/smb/ntdsgrab.rb | 1 + 1 file changed, 1 insertion(+) 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