fixes to more modules
parent
8a49a639a0
commit
a676f600d6
|
@ -61,6 +61,7 @@ class MetasploitModule < Msf::Post
|
|||
|
||||
def run
|
||||
print_status "Setting up the victim's /tmp dir"
|
||||
fail_with(Failure::NotFound, '/etc/passwd not found on system') unless file_exist?('/etc/passwd')
|
||||
initial_size = read_file("/etc/passwd").lines.count
|
||||
print_status "/etc/passwd is currently #{initial_size} lines long"
|
||||
i = 0
|
||||
|
|
|
@ -55,6 +55,7 @@ class MetasploitModule < Msf::Post
|
|||
end
|
||||
end
|
||||
|
||||
return nil unless res
|
||||
vprint_status(res)
|
||||
store_path = store_loot('virtualbox_vms', "text/plain", session, res, "virtualbox_vms.txt", "Virtualbox Virtual Machines")
|
||||
print_good("#{peer} - File successfully retrieved and saved on #{store_path}")
|
||||
|
|
|
@ -194,7 +194,7 @@ class MetasploitModule < Msf::Post
|
|||
when /windows/
|
||||
user_profiles |= grab_user_profiles
|
||||
else
|
||||
print_error "OS not recognized: #{os}"
|
||||
print_error "OS not recognized: #{session.platform}"
|
||||
end
|
||||
user_profiles
|
||||
end
|
||||
|
|
|
@ -67,7 +67,7 @@ class MetasploitModule < Msf::Post
|
|||
user_dirs = enum_user_directories
|
||||
if user_dirs.empty?
|
||||
print_error('No user directories found')
|
||||
return
|
||||
return creds
|
||||
end
|
||||
|
||||
vprint_status("Searching for Remmina creds in #{user_dirs.size} user directories")
|
||||
|
|
Loading…
Reference in New Issue