Skip to content

Commit

Permalink
Land #11533, Fix credential reporting service lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Mar 7, 2019
2 parents 3670dd8 + 841c07a commit 656ef8f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -23,7 +23,7 @@ def create_cracked_credential(opts)
end
new_core = data_service.create_credential(opts)
old_core.logins.each do |login|
service = data_service.services(id: login.service_id)
service = data_service.services(id: login.service_id).first
data_service.create_credential_login(core: new_core, service_id: service.id, status: Metasploit::Model::Login::Status::UNTRIED)
end
new_core
Expand Down Expand Up @@ -77,4 +77,4 @@ def delete_credentials(opts)
self.log_error(e, "Problem deleting credentials")
end
end
end
end

0 comments on commit 656ef8f

Please sign in to comment.