fixes to more modules

bug/bundler_fix
h00die 2017-09-30 15:45:52 -04:00
parent 8a49a639a0
commit a676f600d6
4 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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}")

View File

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

View File

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