Guest User

Untitled

a guest
Apr 7th, 2015
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.31 KB | None | 0 0
  1. >>> import os
  2. >>> from urlparse import urlparse
  3. >>> import xmpp
  4. >>> from django.contrib.auth.models import User
  5. >>> from django.contrib.auth.models import Group
  6. >>> from django.conf import settings
  7. >>> from openfire import exception
  8. >>> from openfire import UserService
  9. >>> from authentication.managers import AuthServicesInfoManager
  10. >>> import threading
  11.  
  12. >>> client = xmpp.Client(settings.JABBER_URL)
  13.  
  14. Invalid debugflag given: always
  15. Invalid debugflag given: nodebuilder
  16. DEBUG:
  17. DEBUG: Debug created for /usr/local/lib/python2.7/dist-packages/xmpp/client.py
  18. DEBUG: flags defined: always,nodebuilder
  19.  
  20. >>> client.connect(server=(settings.JABBER_SERVER, settings.JABBER_PORT))
  21.  
  22. DEBUG: socket start Plugging <xmpp.transports.TCPsocket instance at 0x286b3f8> into <xmpp.client.Client instance at 0x286b488>
  23. DEBUG: socket warn An error occurred while looking up _xmpp-client._tcp.youarebeingmonitored.net
  24. DEBUG: socket start Successfully connected to remote host ('youarebeingmonitored.net', 5222)
  25. DEBUG: dispatcher start Plugging <xmpp.dispatcher.Dispatcher instance at 0x286ff38> into <xmpp.client.Client instance at 0x286b488>
  26. DEBUG: dispatcher info Registering namespace "unknown"
  27. DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(unknown)
  28. DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(unknown)
  29. DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams"
  30. DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
  31. DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
  32. DEBUG: dispatcher info Registering namespace "jabber:client"
  33. DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(jabber:client)
  34. DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(jabber:client)
  35. DEBUG: dispatcher info Registering protocol "iq" as <class 'xmpp.protocol.Iq'>(jabber:client)
  36. DEBUG: dispatcher info Registering protocol "presence" as <class 'xmpp.protocol.Presence'>(jabber:client)
  37. DEBUG: dispatcher info Registering protocol "message" as <class 'xmpp.protocol.Message'>(jabber:client)
  38. 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)
  39. DEBUG: dispatcher warn Registering protocol "error" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
  40. DEBUG: socket sent <?xml version='1.0'?>
  41. <stream:stream xmlns="jabber:client" to="youarebeingmonitored.net" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" >
  42. DEBUG: socket got <?xml version='1.0' encoding='UTF-8'?>
  43. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="mntr" id="636c759e" xml:lang="en" version="1.0">
  44. DEBUG: socket got <stream:features>
  45. <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
  46. </starttls>
  47. <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  48. <mechanism>DIGEST-MD5</mechanism>
  49. <mechanism>PLAIN</mechanism>
  50. <mechanism>CRAM-MD5</mechanism>
  51. </mechanisms>
  52. <compression xmlns="http://jabber.org/features/compress">
  53. <method>zlib</method>
  54. </compression>
  55. <auth xmlns="http://jabber.org/features/iq-auth"/>
  56. </stream:features>
  57. DEBUG: dispatcher warn Unknown stanza: features
  58. 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
  59. DEBUG: tls start Plugging <xmpp.transports.TLS instance at 0x2872560> into <xmpp.client.Client instance at 0x286b488>
  60. DEBUG: tls ok TLS supported by remote server. Requesting TLS start.
  61. 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)
  62. DEBUG: dispatcher warn Registering namespace "urn:ietf:params:xml:ns:xmpp-tls"
  63. DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls)
  64. DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls)
  65. DEBUG: dispatcher warn Registering protocol "proceed" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls)
  66. 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)
  67. DEBUG: dispatcher warn Registering protocol "failure" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls)
  68. DEBUG: socket sent <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
  69. DEBUG: socket got <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
  70. DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-tls/proceed stanza
  71. DEBUG: dispatcher ok Dispatching proceed stanza with type-> props->[] id->None
  72. DEBUG: tls ok Got starttls proceed response. Switching to TLS/SSL...
  73. DEBUG: dispatcher stop Plugging <xmpp.dispatcher.Dispatcher instance at 0x286ff38> out of <xmpp.client.Client instance at 0x286b488>.
  74. DEBUG: dispatcher start Plugging <xmpp.dispatcher.Dispatcher instance at 0x2872878> into <xmpp.client.Client instance at 0x286b488>
  75. DEBUG: dispatcher info Registering namespace "unknown"
  76. DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(unknown)
  77. DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(unknown)
  78. DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams"
  79. DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
  80. DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
  81. DEBUG: dispatcher info Registering namespace "jabber:client"
  82. DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(jabber:client)
  83. DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(jabber:client)
  84. DEBUG: dispatcher info Registering protocol "iq" as <class 'xmpp.protocol.Iq'>(jabber:client)
  85. DEBUG: dispatcher info Registering protocol "presence" as <class 'xmpp.protocol.Presence'>(jabber:client)
  86. DEBUG: dispatcher info Registering protocol "message" as <class 'xmpp.protocol.Message'>(jabber:client)
  87. 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)
  88. DEBUG: dispatcher warn Registering protocol "error" as <class 'xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams)
  89. DEBUG: socket sent <?xml version='1.0'?>
  90. <stream:stream xmlns="jabber:client" to="youarebeingmonitored.net" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" >
  91. 'tls'
  92.  
  93. >>> client.auth(settings.BROADCAST_USER, settings.BROADCAST_USER_PASSWORD, 'broadcast')
  94.  
  95. DEBUG: socket got <?xml version='1.0' encoding='UTF-8'?>
  96. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="mntr" id="636c759e" xml:lang="en" version="1.0">
  97. <stream:features>
  98. <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  99. <mechanism>DIGEST-MD5</mechanism>
  100. <mechanism>PLAIN</mechanism>
  101. <mechanism>CRAM-MD5</mechanism>
  102. </mechanisms>
  103. <compression xmlns="http://jabber.org/features/compress">
  104. <method>zlib</method>
  105. </compression>
  106. <auth xmlns="http://jabber.org/features/iq-auth"/>
  107. </stream:features>
  108. DEBUG: dispatcher warn Unknown stanza: features
  109. 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
  110. DEBUG: sasl start Plugging <xmpp.auth.SASL instance at 0x290f290> into <xmpp.client.Client instance at 0x286b488>
  111. 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)
  112. DEBUG: dispatcher warn Registering namespace "urn:ietf:params:xml:ns:xmpp-sasl"
  113. DEBUG: dispatcher info Registering protocol "unknown" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
  114. DEBUG: dispatcher info Registering protocol "default" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
  115. DEBUG: dispatcher warn Registering protocol "challenge" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
  116. 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)
  117. DEBUG: dispatcher warn Registering protocol "failure" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
  118. 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)
  119. DEBUG: dispatcher warn Registering protocol "success" as <class 'xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-sasl)
  120. DEBUG: socket sent <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5" />
  121. DEBUG: socket got <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09Im1udHIiLG5vbmNlPSJ5Y1FvVjA5Ulg0ZnNIYUVaUGh1djFzWmhmalZ4dElJRTV0VjV0R2JpIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
  122. DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/challenge stanza
  123. DEBUG: dispatcher ok Dispatching challenge stanza with type-> props->[] id->None
  124. DEBUG: sasl ok Got challenge:realm="mntr",nonce="ycQoV09RX4fsHaEZPhuv1sZhfjVxtIIE5tV5tGbi",qop="auth",charset=utf-8,algorithm=md5-sess
  125. DEBUG: socket sent <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYnJvYWRjYXN0QHlvdWFyZWJlaW5nbW9uaXRvcmVkLm5ldCIscmVhbG09InlvdWFyZWJlaW5nbW9uaXRvcmVkLm5ldCIsbm9uY2U9InljUW9WMDlSWDRmc0hhRVpQaHV2MXNaaGZqVnh0SUlFNXRWNXRHYmkiLG5jPTAwMDAwMDAxLGNub25jZT0iMWNmMWRhMDZkM2YyZTY2OTA5MjZkNjhhYWY4MWVhYzQ0NTZiNWUzMWFhODdmZDAzIixkaWdlc3QtdXJpPSJ4bXBwL3lvdWFyZWJlaW5nbW9uaXRvcmVkLm5ldCIscmVzcG9uc2U9MTczNGYxYjFkM2M4ZDg5ZWMyZGNjNjU1YWI2MTBlOWQscW9wPWF1dGg=</response>
  126. DEBUG: socket got <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  127. <not-authorized/>
  128. </failure>
  129. DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/failure stanza
  130. DEBUG: dispatcher ok Dispatching failure stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-sasl'] id->None
  131. DEBUG: sasl error Failed SASL authentification: <not-authorized />
  132. Traceback (most recent call last):
  133. File "/usr/lib/python2.7/code.py", line 216, in interact
  134. sys.ps2
  135. AttributeError: 'module' object has no attribute 'ps2'
  136. DEBUG: sasl stop Plugging <xmpp.auth.SASL instance at 0x290f290> out of <xmpp.client.Client instance at 0x286b488>.
  137. >>>
Advertisement
Add Comment
Please, Sign In to add comment