Attempt to fix #5979

unstable
David Maloney 2011-11-18 12:53:35 -08:00
parent eca1253439
commit ff22246119
1 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,9 @@ class Metasploit3 < Msf::Auxiliary
buf = sock.get_once(1)
if buf != "\x00"
buf = sock.get_once(-1)
if buf.nil?
return :failed
end
result = buf.gsub(/[[:space:]]+/, ' ')
vprint_error("Result: #{result}")
return :skip_user if result =~ /locuser too long/