We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01c5662 + 2041870 commit 6d8dd24Copy full SHA for 6d8dd24
lib/msf/core/db_manager/cred.rb
@@ -2,7 +2,7 @@ module Msf::DBManager::Cred
2
# This methods returns a list of all credentials in the database
3
def creds(wspace=workspace)
4
::ActiveRecord::Base.connection_pool.with_connection {
5
- Mdm::Cred.includes({:service => :host}).where("hosts.workspace_id = ?", wspace.id)
+ Mdm::Cred.where("hosts.workspace_id = ?", wspace.id).joins(:service => :host)
6
}
7
end
8
0 commit comments