Skip to content

Commit

Permalink
Fixed error deleting ntds and sys files
Browse files Browse the repository at this point in the history
  • Loading branch information
Royce Davis authored and Royce Davis committed Jan 22, 2013
1 parent ed3b886 commit c601ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/auxiliary/admin/smb/ntdsgrab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run_host(ip)
createvsc = "vssadmin create shadow /For=%SYSTEMDRIVE%"
logdir = datastore['LOGDIR']
smbshare = datastore['SMBSHARE']
remove_files = [bat, "#{datastore['SYSDRIVE']}#{text}", "#{datastore['SYSDRIVE']}#{datastore['WINPATH']}\\Temp\\ntds", "#{datastore['SYSDRIVE']}#{datastore['WINPATH']}\\Temp\\sys"]
remove_files = [bat, "#{datastore['SYSDRIVE']}#{text}", "#{datastore['SYSDRIVE']}\\#{datastore['WINPATH']}\\Temp\\ntds", "#{datastore['SYSDRIVE']}\\#{datastore['WINPATH']}\\Temp\\sys"]
# Try and connect
if connect
#Try and authenticate with given credentials
Expand Down

0 comments on commit c601ceb

Please sign in to comment.