Handle oddball servers that return no names

git-svn-id: file:///home/svn/framework3/trunk@7983 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-12-26 12:13:18 +00:00
parent c8e60da5ee
commit 634294cb1f
1 changed files with 5 additions and 1 deletions

View File

@ -180,7 +180,11 @@ class Metasploit3 < Msf::Auxiliary
:names => names,
:mac => maddr
}
@results[addr][:name] = @results[addr][:names][0][0] if not hname
if (!hname and @results[addr][:names].length > 0)
@results[addr][:name] = @results[addr][:names][0][0]
end
@results[addr][:name] = hname if hname
@results[addr][:user] = uname if uname
when 0x20