Changed heartbleed jabber implementation to match openssl s_client
see here for example implementation: https://github.com/openssl/openssl/blob/master/apps/s_client.c#L1719bug/bundler_fix
parent
a6a6ad2217
commit
a86a8fed05
|
@ -176,20 +176,21 @@ class Metasploit3 < Msf::Auxiliary
|
|||
|
||||
def tls_jabber
|
||||
# http://xmpp.org/extensions/xep-0035.html
|
||||
msg = "<?xml version='1.0' ?>"
|
||||
msg << "<stream:stream xmlns='jabber:client' "
|
||||
msg = "<stream:stream xmlns='jabber:client' "
|
||||
msg << "xmlns:stream='http://etherx.jabber.org/streams' "
|
||||
msg << "version='1.0' "
|
||||
msg << "to='#{datastore['XMPPDOMAIN']}'>"
|
||||
sock.put(msg)
|
||||
res = sock.get
|
||||
if res.nil? || res =~ /stream:error/ || res !~ /starttls/i
|
||||
if res.nil? || res =~ /stream:error/ || res !~ /<starttls xmlns=['"]urn:ietf:params:xml:ns:xmpp-tls['"]/
|
||||
print_error("#{peer} - Jabber host unknown. Please try changing the XMPPDOMAIN option.") if res && res =~ /<host-unknown/
|
||||
return nil
|
||||
end
|
||||
msg = "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>"
|
||||
sock.put(msg)
|
||||
sock.get_once
|
||||
res = sock.get
|
||||
return nil if res.nil? || res !~ /<proceed/
|
||||
res
|
||||
end
|
||||
|
||||
def run_host(ip)
|
||||
|
|
Loading…
Reference in New Issue