Skip to content

Commit 164321a

Browse files
committed
Add Domain notes to smb_version
1 parent b3e02f1 commit 164321a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/auxiliary/scanner/smb/smb_version.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def run_host(ip)
101101

102102
conf[:os_sp] = res['sp'] if res['sp']
103103
conf[:os_lang] = res['lang'] if res['os'] =~ /Windows/
104+
conf[:SMBName] = simple.client.default_name if simple.client.default_name
105+
conf[:SMBDomain] = simple.client.default_domain if simple.client.default_domain
104106

105107
report_note(
106108
:host => ip,

0 commit comments

Comments
 (0)