proper type conversions

bug/bundler_fix
Stuart Morgan 2015-12-15 23:13:02 +00:00
parent fef9a84548
commit 5dd8cb7648
1 changed files with 4 additions and 4 deletions

View File

@ -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.to_s} bytes")
print_line(" Created: #{f.ctime.to_s}")
print_line(" Modified: #{f.mtime.to_s}")
print_line(" Accessed: #{f.atime.to_s}")
else
print_error("NTDS.DIT is reportedly located at '#{ntds}' but the file does not appear to exist")
end