From 1f452aab482b74278b2f9a6d3ceb9d7a9c492136 Mon Sep 17 00:00:00 2001 From: Tom Sellers Date: Thu, 17 Apr 2014 12:46:25 -0500 Subject: [PATCH] Code cleanup Changes requested by wvu-R7 --- modules/auxiliary/scanner/ssl/openssl_heartbleed.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb b/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb index d78c35c527..5896887f44 100644 --- a/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb +++ b/modules/auxiliary/scanner/ssl/openssl_heartbleed.rb @@ -203,26 +203,26 @@ class Metasploit3 < Msf::Auxiliary end def tls_jabber - sock.put( jabber_connect_msg(datastore['XMPPDOMAIN']) ) + sock.put(jabber_connect_msg(datastore['XMPPDOMAIN'])) res = sock.get - if res && res =~ /host-unknown/ + if res && res.include?('host-unknown') jabber_host = res.match(/ from='([\w.]*)' /) if jabber_host && jabber_host[1] disconnect connect vprint_status("#{peer} - Connecting with autodetected remote XMPP hostname: #{jabber_host[1]}...") - sock.put( jabber_connect_msg(jabber_host[1]) ) + sock.put(jabber_connect_msg(jabber_host[1])) res = sock.get end end - if res.nil? || res =~ /stream:error/ || res !~ /