{"action":"created","issue":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/25","labels_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/25/comments","events_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/25/events","html_url":"https://github.com/micheloosterhof/cowrie/issues/25","id":100527894,"number":25,"title":"Problems with xmpp (exceptions.TypeError: groupChat() got an unexpected keyword argument 'children')","user":{"login":"c0r3dump3d","id":5602401,"avatar_url":"https://avatars.githubusercontent.com/u/5602401?v=3","gravatar_id":"","url":"https://api.github.com/users/c0r3dump3d","html_url":"https://github.com/c0r3dump3d","followers_url":"https://api.github.com/users/c0r3dump3d/followers","following_url":"https://api.github.com/users/c0r3dump3d/following{/other_user}","gists_url":"https://api.github.com/users/c0r3dump3d/gists{/gist_id}","starred_url":"https://api.github.com/users/c0r3dump3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0r3dump3d/subscriptions","organizations_url":"https://api.github.com/users/c0r3dump3d/orgs","repos_url":"https://api.github.com/users/c0r3dump3d/repos","events_url":"https://api.github.com/users/c0r3dump3d/events{/privacy}","received_events_url":"https://api.github.com/users/c0r3dump3d/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/micheloosterhof/cowrie/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-12T12:08:32Z","updated_at":"2015-12-27T13:04:32Z","closed_at":null,"body":"Hi, I try to use the xmpp cowrie feature but when cowrie try to send an event to the xmpp server Python exception occurs:\r\n\r\n [cowrie.core.ssh.HoneyPotSSHFactory] Log observer <bound method DBLogger.emit of <cowrie.dblog.xmpp.DBLogger object at 0x327ec50>> failed.\r\n\tTraceback (most recent call last):\r\n\t  File \"/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py\", line 586, in _doReadOrWrite\r\n\t    why = selectable.doRead()\r\n\t  File \"/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py\", line 725, in doRead\r\n\t    protocol.makeConnection(transport)\r\n\t  File \"/usr/lib/python2.7/dist-packages/twisted/internet/protocol.py\", line 462, in makeConnection\r\n\t    self.connectionMade()\r\n\t  File \"/home/kippo/cowrie/cowrie/core/ssh.py\", line 228, in connectionMade\r\n\t    sessionno=self.transport.sessionno)\r\n\t--- <exception caught here> ---\r\n\t  File \"/usr/lib/python2.7/dist-packages/twisted/python/log.py\", line 284, in msg\r\n\t    self.observers[i](actualEventDict)\r\n\t  File \"/home/kippo/cowrie/cowrie/core/dblog.py\", line 87, in emit\r\n\t    ev['src_ip'], ev['src_port'], ev['dst_ip'], ev['dst_port'])\r\n\t  File \"/home/kippo/cowrie/cowrie/dblog/xmpp.py\", line 118, in createSession\r\n\t    self.broadcast('createsession', ses)\r\n\t  File \"/home/kippo/cowrie/cowrie/dblog/xmpp.py\", line 94, in broadcast\r\n\t    (self.signals[msgtype], self.muc.server) , msg)\r\n\t  File \"/home/kippo/cowrie/cowrie/dblog/xmpp.py\", line 103, in report\r\n\t    self.muc.groupChat(to,  None, children=[body])\r\n\texceptions.TypeError: groupChat() got an unexpected keyword argument 'children'"},"comment":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/comments/167407235","html_url":"https://github.com/micheloosterhof/cowrie/issues/25#issuecomment-167407235","issue_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/25","id":167407235,"user":{"login":"myobfee","id":14834930,"avatar_url":"https://avatars.githubusercontent.com/u/14834930?v=3","gravatar_id":"","url":"https://api.github.com/users/myobfee","html_url":"https://github.com/myobfee","followers_url":"https://api.github.com/users/myobfee/followers","following_url":"https://api.github.com/users/myobfee/following{/other_user}","gists_url":"https://api.github.com/users/myobfee/gists{/gist_id}","starred_url":"https://api.github.com/users/myobfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myobfee/subscriptions","organizations_url":"https://api.github.com/users/myobfee/orgs","repos_url":"https://api.github.com/users/myobfee/repos","events_url":"https://api.github.com/users/myobfee/events{/privacy}","received_events_url":"https://api.github.com/users/myobfee/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T13:04:32Z","updated_at":"2015-12-27T13:04:32Z","body":"The issue appears to have changed after pulling the latest updates.  Now it would appear that cowrie is passing the \"muc\" variable as the actual room name:\r\n\r\nerror:\r\n\r\n<message type='error' to='bot@my.domain/OWodXoba' from='groupchat.my.domain@my.domain'><error type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></message>\r\n\r\nxmpp config:\r\n\r\n[database_xmpp]\r\nserver = my.domain\r\nuser = bot@my.domain\r\npassword = botpassword\r\nmuc = groupchat.my.domain \r\nsignal_createsession = cowrie-events\r\nsignal_connectionlost = cowrie-events\r\nsignal_loginfailed = cowrie-events\r\nsignal_loginsucceeded = cowrie-events\r\nsignal_command = cowrie-events\r\nsignal_clientversion = cowrie-events\r\ndebug=true\r\n\r\nIf it could msg an individual user (me) instead of a muc, this would actually work quite well too, and in trying to massage these variables to get that functionality, it seems like something in the code needs it to be a muc.  I will keep poking but I was hopeful @davegermiquet or someone might know what's happening here."}}