Handle oddball servers that return no names
git-svn-id: file:///home/svn/framework3/trunk@7983 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c8e60da5ee
commit
634294cb1f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue