Land #10819, os_name population for ssh_login*

GSoC/Meterpreter_Web_Console
William Vu 2018-10-19 15:53:38 -05:00
commit abd425c863
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
2 changed files with 18 additions and 0 deletions

View File

@ -73,6 +73,15 @@ class MetasploitModule < Msf::Auxiliary
# Set the session platform
s.platform = scanner.get_platform(result.proof)
# Create database host information
host_info = {host: scanner.host}
unless s.platform == 'unknown'
host_info[:os_name] = s.platform
end
report_host(host_info)
s
end

View File

@ -92,6 +92,15 @@ class MetasploitModule < Msf::Auxiliary
# Set the session platform
s.platform = scanner.get_platform(result.proof)
# Create database host information
host_info = {host: scanner.host}
unless s.platform == 'unknown'
host_info[:os_name] = s.platform
end
report_host(host_info)
s
end