Skip to content

Commit 5f121fe

Browse files
committed
Workaround postgresql.fingerprint dlog message
Came up as a concern, this special-cases notes of "postgresql.fingerprint". Not thrilled with this fix, though.
1 parent 1a03777 commit 5f121fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/msf/core/model/host.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def attribute_locked?(attr)
3232
def validate_fingerprint_data(fp)
3333
if fp.data.kind_of?(Hash) and !fp.data.empty?
3434
return true
35+
elsif fp.ntype == "postgresql.fingerprint"
36+
# Special case postgresql.fingerprint; it's always a string,
37+
# and should not be used for OS fingerprinting (yet), so
38+
# don't bother logging it. TODO: fix os fingerprint finding, this
39+
# name collision seems silly.
40+
return false
3541
else
3642
dlog("Could not validate fingerprint data: #{fp.inspect}")
3743
return false

0 commit comments

Comments
 (0)