diff --git a/modules/post/windows/gather/ntds_location.rb b/modules/post/windows/gather/ntds_location.rb index 47e0713f45..0376f43ca0 100644 --- a/modules/post/windows/gather/ntds_location.rb +++ b/modules/post/windows/gather/ntds_location.rb @@ -30,7 +30,7 @@ class Metasploit3 < Msf::Post def run # Find the NTDS.DIT location in the registry - ntds = registry_getvaldata("HKLM\\SYSTEM\\CurrentControlSet\\Services\\NTDS\\Parameters","DSA Database file").to_s + ntds = registry_getvaldata("HKLM\\SYSTEM\\CurrentControlSet\\Services\\NTDS\\Parameters","DSA Database file").to_s if !ntds print_error("Unable to find the NTDS.DIT location.") return @@ -39,10 +39,10 @@ class Metasploit3 < Msf::Post if file?(ntds) f = client.fs.file.stat(ntds) print_line("NTDS.DIT is located at: #{ntds}") - print_line(" Size: #{f.size} bytes") - print_line(" Created: #{f.ctime}") - print_line(" Modified: #{f.mtime}") - print_line(" Accessed: #{f.atime}") + print_line(" Size: #{f.size} bytes") + print_line(" Created: #{f.ctime}") + print_line(" Modified: #{f.mtime}") + print_line(" Accessed: #{f.atime}") else print_error("NTDS.DIT is reportedly located at '#{ntds}' but the file does not appear to exist") end