bug/bundler_fix
Stuart Morgan 2015-12-15 23:11:40 +00:00
parent 281966023c
commit a2b30ff16e
1 changed files with 5 additions and 5 deletions

View File

@ -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