smb_version: Remove duplicated report_service

This commit is contained in:
g0t mi1k
2026-04-21 11:20:54 +01:00
parent 3c1b245751
commit a173ea15fa
+11 -10
View File
@@ -318,7 +318,7 @@ class MetasploitModule < Msf::Auxiliary
})
end
# Report the service with a friendly banner
# Report the service with a detailed friendly banner
report_service(
host: ip,
port: rport,
@@ -338,20 +338,21 @@ class MetasploitModule < Msf::Auxiliary
)
elsif smb1_fingerprint['native_os'] || smb1_fingerprint['native_lm']
desc = "#{smb1_fingerprint['native_os']} (#{smb1_fingerprint['native_lm']})"
report_service(host: ip, port: rport, name: 'smb', info: desc)
# Report the service with a friendly banner
report_service(
host: ip,
port: rport,
proto: 'tcp',
name: 'smb',
info: desc
)
lines << { type: :status, message: " Host could not be identified: #{desc}" }
else
lines << { type: :status, message: ' Host could not be identified', verbose: true }
end
report_service(
host: ip,
port: rport,
proto: 'tcp',
name: 'smb',
info: "#{smb_desc}. #{os_desc}"
)
# Report a smb.fingerprint hash of attributes for OS fingerprinting
report_note(
host: ip,