Fix finder query in Msf::DBManager::Vuln

MSP-12152

* This is part of updating finder queries to be Rails 4 compatibile
* In #find_vuln_by_details, pass in conditons hash crit rather than symbol :crit
bug/bundler_fix
Christian Catalan 2015-02-13 13:18:36 -06:00
parent 17437a3813
commit dc6a365a13
No known key found for this signature in database
GPG Key ID: E4E6D61EC3953653
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ module Msf::DBManager::Vuln
vuln = nil
if service
vuln = service.vulns.includes(:vuln_details).where(:crit).first
vuln = service.vulns.includes(:vuln_details).where(crit).first
end
# Return if we matched based on service
@ -39,7 +39,7 @@ module Msf::DBManager::Vuln
# Prevent matches against other services
crit["vulns.service_id"] = nil if service
vuln = host.vulns.includes(:vuln_details).where(:crit).first
vuln = host.vulns.includes(:vuln_details).where(crit).first
return vuln
end