Skip to content

Commit 9196350

Browse files
committed
smb_version: Be more verbose - show smb1 if possible
1 parent d6911be commit 9196350

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/auxiliary/scanner/smb/smb_version.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,11 @@ def run_host(ip)
295295
if info[:os_name] && info[:os_name] != 'Unknown'
296296
smb_desc = smb_description(info)
297297
os_desc = "Host is running #{info[:os_name]}"
298+
smb1_desc = "; #{smb1_fingerprint['native_lm']}" if smb1_fingerprint['native_lm'] else ""
298299

299300
lines << { type: :status, message: smb_desc }
300301
lines << { type: :good, message: " #{os_desc}" }
302+
lines << { type: :status, message: " #{smb1_fingerprint['native_lm']}", verbose: true } if smb1_fingerprint['native_lm']
301303

302304
unless info[:signing_required]
303305
report_vuln({
@@ -318,7 +320,7 @@ def run_host(ip)
318320
port: rport,
319321
proto: 'tcp',
320322
name: 'smb',
321-
info: "#{smb_desc}; #{os_desc}"
323+
info: "#{smb_desc}; #{os_desc}#{smb1_desc}"
322324
)
323325

324326
# Report a fingerprint.match hash for name, domain, and language

0 commit comments

Comments
 (0)