Create report_super_admin_creds method
parent
8f17011909
commit
92df11baa7
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue