report os detection in smb version scanner
git-svn-id: file:///home/svn/framework3/trunk@6494 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
b31abbc6f9
commit
5ea6a1027a
|
@ -22,6 +22,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
|
||||
# Scanner mixin should be near last
|
||||
include Msf::Auxiliary::Scanner
|
||||
include Msf::Auxiliary::Report
|
||||
|
||||
# Aliases for common classes
|
||||
SIMPLE = Rex::Proto::SMB::SimpleClient
|
||||
|
@ -54,6 +55,20 @@ class Metasploit3 < Msf::Auxiliary
|
|||
|
||||
if(res['os'] and res['os'] != 'Unknown')
|
||||
print_status("#{rhost} is running #{res['os']} #{res['sp']} (language: #{res['lang']})")
|
||||
report_service(:host => ip, :port => info[0])
|
||||
case res['os']
|
||||
when /Windows/
|
||||
os = OperatingSystems::WINDOWS
|
||||
else
|
||||
os = OperatingSystems::UNKNOWN
|
||||
end
|
||||
report_host({
|
||||
:host => ip,
|
||||
:os_flavor => res['os'],
|
||||
:os_lang => res['lang'],
|
||||
:os_name => os,
|
||||
:os_sp => res['sp'],
|
||||
})
|
||||
else
|
||||
print_status("#{rhost} could not be identified")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue