Create report_super_admin_creds method

bug/bundler_fix
jvazquez-r7 2014-11-10 11:16:25 -06:00
parent 8f17011909
commit 92df11baa7
1 changed files with 20 additions and 15 deletions

View File

@ -239,6 +239,8 @@ class Metasploit3 < Msf::Auxiliary
if cookie_su.nil?
fail_with(Failure::NoAccess, "#{peer} - Failed to authenticate as Super Administrator, account #{username} might not work.")
else
report_super_admin_creds(username, password)
end
# 1st we turn on password exports
@ -285,8 +287,10 @@ class Metasploit3 < Msf::Auxiliary
else
print_error("#{peer} - Failed to export Password Manager Pro passwords.")
end
status = Metasploit::Model::Login::Status::SUCCESSFUL
end
def report_super_admin_creds(username, password)
status = Metasploit::Model::Login::Status::SUCCESSFUL
service_data = {
address: rhost,
@ -295,6 +299,7 @@ class Metasploit3 < Msf::Auxiliary
protocol: 'tcp',
workspace_id: myworkspace_id
}
credential_data = {
origin_type: :service,
module_fullname: self.fullname,