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 :critbug/bundler_fix
parent
17437a3813
commit
dc6a365a13
|
@ -31,7 +31,7 @@ module Msf::DBManager::Vuln
|
||||||
vuln = nil
|
vuln = nil
|
||||||
|
|
||||||
if service
|
if service
|
||||||
vuln = service.vulns.includes(:vuln_details).where(:crit).first
|
vuln = service.vulns.includes(:vuln_details).where(crit).first
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return if we matched based on service
|
# Return if we matched based on service
|
||||||
|
@ -39,7 +39,7 @@ module Msf::DBManager::Vuln
|
||||||
|
|
||||||
# Prevent matches against other services
|
# Prevent matches against other services
|
||||||
crit["vulns.service_id"] = nil if service
|
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
|
return vuln
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue