msftidy
parent
281966023c
commit
a2b30ff16e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue