Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import os
- >>> from urlparse import urlparse
- >>> import xmpp
- >>> from django.contrib.auth.models import User
- >>> from django.contrib.auth.models import Group
- >>> from django.conf import settings
- >>> from openfire import exception
- >>> from openfire import UserService
- >>> from authentication.managers import AuthServicesInfoManager
- >>> import threading
- >>> client = xmpp.Client(settings.JABBER_URL)
- Invalid debugflag given: always
- Invalid debugflag given: nodebuilder
- DEBUG:
- DEBUG: Debug created for /usr/local/lib/python2.7/dist-packages/xmpp/client.py
- DEBUG: flags defined: always,nodebuilder
- >>> client.connect(server=(settings.JABBER_SERVER, settings.JABBER_PORT))
- DEBUG: socket start Plugging <xmpp.transports.TCPsocket instance at 0x286b3f8> into <xmpp.client.Client instance at 0x286b488>
- DEBUG: socket warn An error occurred while looking up _xmpp-client._tcp.youarebeingmonitored.net
- DEBUG: socket start Successfully connected to remote host ('youarebeingmonitored.net', 5222)
- DEBUG: dispatcher start Plugging <xmpp.dispatcher.Dispatcher instance at 0x286ff38> into <xmpp.client.Client instance at 0x286b488>
- DEBUG: dispatcher info Registering namespace "unknown"
- DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(unknown)
- DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(unknown)
- DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams"
- DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
- DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
- DEBUG: dispatcher info Registering namespace "jabber:client"
- DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(jabber:client)
- DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(jabber:client)
- DEBUG: dispatcher info Registering protocol "iq" as <class 'xmpp.protocol.Iq'>(jabber:client)
- DEBUG: dispatcher info Registering protocol "presence" as <class 'xmpp.protocol.Presence'>(jabber:client)
- DEBUG: dispatcher info Registering protocol "message" as <class 'xmpp.protocol.Message'>(jabber:client)
- DEBUG: dispatcher info Registering handler <bound method Dispatcher.streamErrorHandler of <xmpp.dispatcher.Dispatcher instance at 0x286ff38>> for "error" type-> ns->(http://etherx.jabber.org/streams)
- DEBUG: dispatcher warn Registering protocol "error" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
- DEBUG: socket sent <?xml version='1.0'?>
- <stream:stream xmlns="jabber:client" to="youarebeingmonitored.net" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" >
- DEBUG: socket got <?xml version='1.0' encoding='UTF-8'?>
- <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="mntr" id="636c759e" xml:lang="en" version="1.0">
- DEBUG: socket got <stream:features>
- <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
- </starttls>
- <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
- <mechanism>DIGEST-MD5</mechanism>
- <mechanism>PLAIN</mechanism>
- <mechanism>CRAM-MD5</mechanism>
- </mechanisms>
- <compression xmlns="http://jabber.org/features/compress">
- <method>zlib</method>
- </compression>
- <auth xmlns="http://jabber.org/features/iq-auth"/>
- </stream:features>
- DEBUG: dispatcher warn Unknown stanza: features
- DEBUG: dispatcher ok Dispatching unknown stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-tls', u'urn:ietf:params:xml:ns:xmpp-sasl', u'http://jabber.org/features/compress', u'http://jabber.org/features/iq-auth'] id->None
- DEBUG: tls start Plugging <xmpp.transports.TLS instance at 0x2872560> into <xmpp.client.Client instance at 0x286b488>
- DEBUG: tls ok TLS supported by remote server. Requesting TLS start.
- DEBUG: dispatcher info Registering handler <bound method TLS.StartTLSHandler of <xmpp.transports.TLS instance at 0x2872560>> for "proceed" type-> ns->(urn:ietf:params:xml:ns:xmpp-tls)
- DEBUG: dispatcher warn Registering namespace "urn:ietf:params:xml:ns:xmpp-tls"
- DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls)
- DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls)
- DEBUG: dispatcher warn Registering protocol "proceed" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls)
- DEBUG: dispatcher info Registering handler <bound method TLS.StartTLSHandler of <xmpp.transports.TLS instance at 0x2872560>> for "failure" type-> ns->(urn:ietf:params:xml:ns:xmpp-tls)
- DEBUG: dispatcher warn Registering protocol "failure" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls)
- DEBUG: socket sent <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
- DEBUG: socket got <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
- DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-tls/proceed stanza
- DEBUG: dispatcher ok Dispatching proceed stanza with type-> props->[] id->None
- DEBUG: tls ok Got starttls proceed response. Switching to TLS/SSL...
- DEBUG: dispatcher stop Plugging <xmpp.dispatcher.Dispatcher instance at 0x286ff38> out of <xmpp.client.Client instance at 0x286b488>.
- DEBUG: dispatcher start Plugging <xmpp.dispatcher.Dispatcher instance at 0x2872878> into <xmpp.client.Client instance at 0x286b488>
- DEBUG: dispatcher info Registering namespace "unknown"
- DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(unknown)
- DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(unknown)
- DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams"
- DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
- DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
- DEBUG: dispatcher info Registering namespace "jabber:client"
- DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(jabber:client)
- DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(jabber:client)
- DEBUG: dispatcher info Registering protocol "iq" as <class 'xmpp.protocol.Iq'>(jabber:client)
- DEBUG: dispatcher info Registering protocol "presence" as <class 'xmpp.protocol.Presence'>(jabber:client)
- DEBUG: dispatcher info Registering protocol "message" as <class 'xmpp.protocol.Message'>(jabber:client)
- DEBUG: dispatcher info Registering handler <bound method Dispatcher.streamErrorHandler of <xmpp.dispatcher.Dispatcher instance at 0x2872878>> for "error" type-> ns->(http://etherx.jabber.org/streams)
- DEBUG: dispatcher warn Registering protocol "error" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
- DEBUG: socket sent <?xml version='1.0'?>
- <stream:stream xmlns="jabber:client" to="youarebeingmonitored.net" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" >
- 'tls'
- >>> client.auth(settings.BROADCAST_USER, settings.BROADCAST_USER_PASSWORD, 'broadcast')
- DEBUG: socket got <?xml version='1.0' encoding='UTF-8'?>
- <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="mntr" id="636c759e" xml:lang="en" version="1.0">
- <stream:features>
- <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
- <mechanism>DIGEST-MD5</mechanism>
- <mechanism>PLAIN</mechanism>
- <mechanism>CRAM-MD5</mechanism>
- </mechanisms>
- <compression xmlns="http://jabber.org/features/compress">
- <method>zlib</method>
- </compression>
- <auth xmlns="http://jabber.org/features/iq-auth"/>
- </stream:features>
- DEBUG: dispatcher warn Unknown stanza: features
- DEBUG: dispatcher ok Dispatching unknown stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-sasl', u'http://jabber.org/features/compress', u'http://jabber.org/features/iq-auth'] id->None
- DEBUG: sasl start Plugging <xmpp.auth.SASL instance at 0x290f290> into <xmpp.client.Client instance at 0x286b488>
- DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x290f290>> for "challenge" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl)
- DEBUG: dispatcher warn Registering namespace "urn:ietf:params:xml:ns:xmpp-sasl"
- DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
- DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
- DEBUG: dispatcher warn Registering protocol "challenge" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
- DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x290f290>> for "failure" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl)
- DEBUG: dispatcher warn Registering protocol "failure" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
- DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x290f290>> for "success" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl)
- DEBUG: dispatcher warn Registering protocol "success" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
- DEBUG: socket sent <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5" />
- DEBUG: socket got <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09Im1udHIiLG5vbmNlPSJ5Y1FvVjA5Ulg0ZnNIYUVaUGh1djFzWmhmalZ4dElJRTV0VjV0R2JpIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
- DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/challenge stanza
- DEBUG: dispatcher ok Dispatching challenge stanza with type-> props->[] id->None
- DEBUG: sasl ok Got challenge:realm="mntr",nonce="ycQoV09RX4fsHaEZPhuv1sZhfjVxtIIE5tV5tGbi",qop="auth",charset=utf-8,algorithm=md5-sess
- DEBUG: socket sent <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYnJvYWRjYXN0QHlvdWFyZWJlaW5nbW9uaXRvcmVkLm5ldCIscmVhbG09InlvdWFyZWJlaW5nbW9uaXRvcmVkLm5ldCIsbm9uY2U9InljUW9WMDlSWDRmc0hhRVpQaHV2MXNaaGZqVnh0SUlFNXRWNXRHYmkiLG5jPTAwMDAwMDAxLGNub25jZT0iMWNmMWRhMDZkM2YyZTY2OTA5MjZkNjhhYWY4MWVhYzQ0NTZiNWUzMWFhODdmZDAzIixkaWdlc3QtdXJpPSJ4bXBwL3lvdWFyZWJlaW5nbW9uaXRvcmVkLm5ldCIscmVzcG9uc2U9MTczNGYxYjFkM2M4ZDg5ZWMyZGNjNjU1YWI2MTBlOWQscW9wPWF1dGg=</response>
- DEBUG: socket got <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
- <not-authorized/>
- </failure>
- DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/failure stanza
- DEBUG: dispatcher ok Dispatching failure stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-sasl'] id->None
- DEBUG: sasl error Failed SASL authentification: <not-authorized />
- Traceback (most recent call last):
- File "/usr/lib/python2.7/code.py", line 216, in interact
- sys.ps2
- AttributeError: 'module' object has no attribute 'ps2'
- DEBUG: sasl stop Plugging <xmpp.auth.SASL instance at 0x290f290> out of <xmpp.client.Client instance at 0x286b488>.
- >>>
Advertisement
Add Comment
Please, Sign In to add comment