From 856ad7e83d698d63f039ca4a4b63617efad229d5 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Wed, 9 Apr 2014 21:53:17 +0200 Subject: [PATCH] heartbleed - Better output on wrong jabber domain and add. nil? check --- modules/auxiliary/scanner/ssl/openssl_heartbleed.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb b/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb index dcf592c5f8..8870e31353 100644 --- a/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb +++ b/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb @@ -184,10 +184,14 @@ class Metasploit3 < Msf::Auxiliary sock.put(msg) # get first response with id res = sock.get_once - return nil if res.nil? # SSL not supported + if res.nil? || res =~ /stream:error/ + # check for unknown host error message + print_error("#{peer} - Jabber host unknown. Please try changing the XMPPDOMAIN option.") if res =~ /