From b5561cc9ecfbe877398440181f748e6aca98ce5f Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sun, 30 Mar 2014 06:32:38 -0700 Subject: [PATCH] Report a fingerprint instead of overwriting host.os_name --- lib/msf/core/db.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 3da468f559..04bf753482 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -3426,7 +3426,18 @@ class DBManager :task => args[:task] } - conf[:os_name] = os if os + + if os + report_note( + :workspace => wspace, + :task => args[:task], + :host => ip, + :type => 'host.os.spiceworks_fingerprint', + :data => { + :os => os.to_s.strip + } + ) + end info = [] info << "Serial Number: #{serialno}" unless (serialno.blank? or serialno == name)