Skip to content

Commit fde2687

Browse files
author
HD Moore
committed
Store edition,version,build in the fingerprint.match
1 parent 73e4ec7 commit fde2687

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/auxiliary/scanner/smb/smb_version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,19 @@ def run_host(ip)
7979
if res['edition'].to_s.length > 0
8080
desc << " #{res['edition']}"
8181
conf[:os_edition] = res['edition']
82+
match_conf['os.edition'] = res['edition']
8283
end
8384

8485
if res['sp'].to_s.length > 0
8586
desc << " #{res['sp'].downcase.gsub('service pack ', 'SP')}"
8687
conf[:os_sp] = res['sp']
88+
match_conf['os.version'] = res['sp']
8789
end
8890

8991
if res['build'].to_s.length > 0
9092
desc << " (build:#{res['build']})"
9193
conf[:os_build] = res['build']
94+
match_conf['os.build'] = res['build']
9295
end
9396

9497
if res['lang'].to_s.length > 0 and res['lang'] != 'Unknown'

0 commit comments

Comments
 (0)