{"action":"created","issue":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/353","repository_url":"https://api.github.com/repos/micheloosterhof/cowrie","labels_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/353/comments","events_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/353/events","html_url":"https://github.com/micheloosterhof/cowrie/issues/353","id":189676567,"number":353,"title":"telnet/transport.py: 'MODE' is not defined","user":{"login":"michalmalik","id":1903285,"avatar_url":"https://avatars.githubusercontent.com/u/1903285?v=3","gravatar_id":"","url":"https://api.github.com/users/michalmalik","html_url":"https://github.com/michalmalik","followers_url":"https://api.github.com/users/michalmalik/followers","following_url":"https://api.github.com/users/michalmalik/following{/other_user}","gists_url":"https://api.github.com/users/michalmalik/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmalik/subscriptions","organizations_url":"https://api.github.com/users/michalmalik/orgs","repos_url":"https://api.github.com/users/michalmalik/repos","events_url":"https://api.github.com/users/michalmalik/events{/privacy}","received_events_url":"https://api.github.com/users/michalmalik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-16T11:33:34Z","updated_at":"2016-11-16T12:10:48Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\n1) Install cowrie from git\r\n2) Enable telnet in cowrie.cfg\r\n3) Start cowrie\r\n4) Try to connect:\r\n\r\n```\r\n        Traceback (most recent call last):\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/python/log.py\", line 88, in callWithLogger\r\n            return callWithContext({\"system\": lp}, func, *args, **kw)\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/python/log.py\", line 73, in callWithContext\r\n            return context.call({ILogContext: newCtx}, func, *args, **kw)\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/python/context.py\", line 118, in callWithContext\r\n            return self.currentContext().callWithContext(ctx, func, *args, **kw)\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/python/context.py\", line 81, in callWithContext\r\n            return func(*args,**kw)\r\n        --- <exception caught here> ---\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py\", line 614, in _doReadOrWrite\r\n            why = selectable.doRead()\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py\", line 214, in doRead\r\n            return self._dataReceived(data)\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py\", line 220, in _dataReceived\r\n            rval = self.protocol.dataReceived(data)\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/conch/telnet.py\", line 545, in dataReceived\r\n            self.commandReceived(command, b)\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/conch/telnet.py\", line 615, in commandReceived\r\n            cmdFunc(argument)\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/conch/telnet.py\", line 631, in telnet_WILL\r\n            self.willMap[s.him.state, s.him.negotiating](self, s, option)\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/conch/telnet.py\", line 635, in will_no_false\r\n            if self.enableRemote(option):\r\n          File \"/usr/lib/python2.7/dist-packages/twisted/conch/telnet.py\", line 882, in enableRemote\r\n            return self.protocol.enableRemote(option)\r\n          File \"/home/cowrie/cowrie/cowrie/telnet/transport.py\", line 179, in enableRemote\r\n            self.transport.requestNegotiation(LINEMODE, MODE + chr(TRAPSIG))\r\n        exceptions.NameError: global name 'MODE' is not defined\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/comments/260931010","html_url":"https://github.com/micheloosterhof/cowrie/issues/353#issuecomment-260931010","issue_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/353","id":260931010,"user":{"login":"michalmalik","id":1903285,"avatar_url":"https://avatars.githubusercontent.com/u/1903285?v=3","gravatar_id":"","url":"https://api.github.com/users/michalmalik","html_url":"https://github.com/michalmalik","followers_url":"https://api.github.com/users/michalmalik/followers","following_url":"https://api.github.com/users/michalmalik/following{/other_user}","gists_url":"https://api.github.com/users/michalmalik/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmalik/subscriptions","organizations_url":"https://api.github.com/users/michalmalik/orgs","repos_url":"https://api.github.com/users/michalmalik/repos","events_url":"https://api.github.com/users/michalmalik/events{/privacy}","received_events_url":"https://api.github.com/users/michalmalik/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T12:10:48Z","updated_at":"2016-11-16T12:10:48Z","body":"Whooops, I just realized you asked for Twisted version, not Telnet...\r\nHere it goes:\r\n```\r\n$ dpkg -l | grep twisted\r\nii  python-twisted                 14.0.2-3                    all          Event-based framework for internet applications (dependency package)\r\nii  python-twisted-bin             14.0.2-3                    amd64        Event-based framework for internet applications\r\nii  python-twisted-conch           1:14.0.2-3                  all          Twisted SSH Implementation\r\nii  python-twisted-core            14.0.2-3                    all          Event-based framework for internet applications\r\nii  python-twisted-lore            14.0.2-3                    all          Documentation generator with HTML and LaTeX support\r\nii  python-twisted-mail            14.0.2-3                    all          SMTP, IMAP and POP protocol implementation\r\nii  python-twisted-names           14.0.2-3                    all          DNS protocol implementation with client and server\r\nii  python-twisted-news            14.0.2-3                    all          NNTP protocol implementation with client and server\r\nii  python-twisted-runner          14.0.2-3                    amd64        Process management, including an inetd server\r\nii  python-twisted-web             14.0.2-3                    all          HTTP protocol implementation together with clients and servers\r\nii  python-twisted-words           14.0.2-3                    all          Chat and Instant Messaging\r\n```"}}
{"actor":{"display_login":"michalmalik"}}