From 5f121fe18173f0884d5795eeffdb5c7ce1484c1e Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Wed, 11 Jan 2012 13:17:21 -0600 Subject: [PATCH] Workaround postgresql.fingerprint dlog message Came up as a concern, this special-cases notes of "postgresql.fingerprint". Not thrilled with this fix, though. --- lib/msf/core/model/host.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/msf/core/model/host.rb b/lib/msf/core/model/host.rb index 1ba7aa1e5f..f37f753f4b 100644 --- a/lib/msf/core/model/host.rb +++ b/lib/msf/core/model/host.rb @@ -32,6 +32,12 @@ class Host < ActiveRecord::Base def validate_fingerprint_data(fp) if fp.data.kind_of?(Hash) and !fp.data.empty? return true + elsif fp.ntype == "postgresql.fingerprint" + # Special case postgresql.fingerprint; it's always a string, + # and should not be used for OS fingerprinting (yet), so + # don't bother logging it. TODO: fix os fingerprint finding, this + # name collision seems silly. + return false else dlog("Could not validate fingerprint data: #{fp.inspect}") return false