Browse Source

Update ActiveRecord syntax for framework db credential iteration

Brent Cook 3 years ago
parent
commit
2041870e62
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/msf/core/db_manager/cred.rb

+ 1
- 1
lib/msf/core/db_manager/cred.rb View File

@@ -2,7 +2,7 @@ module Msf::DBManager::Cred
2 2
   # This methods returns a list of all credentials in the database
3 3
   def creds(wspace=workspace)
4 4
   ::ActiveRecord::Base.connection_pool.with_connection {
5
-    Mdm::Cred.includes({:service => :host}).where("hosts.workspace_id = ?", wspace.id)
5
+    Mdm::Cred.where("hosts.workspace_id = ?", wspace.id).joins(:service => :host)
6 6
   }
7 7
   end
8 8
 

Loading…
Cancel
Save