Fix undefined method error

[FixRM #8332]
bug/bundler_fix
sinn3r 2013-08-21 01:06:54 -05:00
parent 785f633d1d
commit 8eeb66f96d
1 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,12 @@ class Metasploit3 < Msf::Auxiliary
cmd_var => cmd
}
})
if res.nil?
print_error("Connection timed out")
return "", "" # Empty username & password
end
creds = res.body.to_s.match(/.*:"(.*)";.*";/)[1]
return creds.split(":")
end
@ -89,6 +95,7 @@ class Metasploit3 < Msf::Auxiliary
print_status("Found Version #{ver}")
session_id,cmd = setup_session()
user,pass = get_creds(session_id,cmd)
return if user.empty? and pass.empty?
print_good("Got creds. Login:#{user} Password:#{pass}")
print_good("Access the admin interface here: #{ip}:#{rport}#{target_uri.path}dashboard/")