Store the name and domain in the service info

git-svn-id: file:///home/svn/framework3/trunk@8826 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-03-15 21:35:21 +00:00
parent 1b54c0e493
commit 0f7a6cd1f2
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ class Metasploit3 < Msf::Auxiliary
end
end
desc = "#{rhost} is running #{res['os']} #{res['sp']} (language: #{res['lang']})"
desc = "#{res['os']} #{res['sp']} (language: #{res['lang']})"
if(simple.client.default_name)
desc << " (name:#{simple.client.default_name})"
end
@ -84,14 +84,14 @@ class Metasploit3 < Msf::Auxiliary
desc << " (domain:#{simple.client.default_domain})"
end
print_status(desc)
print_status("#{rhost} is running #{desc}")
report_service(
:host => ip,
:port => info[0],
:proto => 'tcp',
:name => 'smb',
:info => "#{res['os']} #{res['sp']} (language: #{res['lang']})"
:info => desc
)
conf = {