diff --git a/modules/auxiliary/scanner/rservices/rsh_login.rb b/modules/auxiliary/scanner/rservices/rsh_login.rb index f78e23bb94..156f57271c 100644 --- a/modules/auxiliary/scanner/rservices/rsh_login.rb +++ b/modules/auxiliary/scanner/rservices/rsh_login.rb @@ -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/