{"action":"created","issue":{"url":"https://api.github.com/repos/CoreSecurity/impacket/issues/111","labels_url":"https://api.github.com/repos/CoreSecurity/impacket/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/CoreSecurity/impacket/issues/111/comments","events_url":"https://api.github.com/repos/CoreSecurity/impacket/issues/111/events","html_url":"https://github.com/CoreSecurity/impacket/issues/111","id":116866109,"number":111,"title":"Error for me [Check it]","user":{"login":"its0x08","id":15280042,"avatar_url":"https://avatars.githubusercontent.com/u/15280042?v=3","gravatar_id":"","url":"https://api.github.com/users/its0x08","html_url":"https://github.com/its0x08","followers_url":"https://api.github.com/users/its0x08/followers","following_url":"https://api.github.com/users/its0x08/following{/other_user}","gists_url":"https://api.github.com/users/its0x08/gists{/gist_id}","starred_url":"https://api.github.com/users/its0x08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/its0x08/subscriptions","organizations_url":"https://api.github.com/users/its0x08/orgs","repos_url":"https://api.github.com/users/its0x08/repos","events_url":"https://api.github.com/users/its0x08/events{/privacy}","received_events_url":"https://api.github.com/users/its0x08/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-13T22:29:12Z","updated_at":"2015-12-01T14:28:33Z","closed_at":"2015-11-30T12:38:11Z","body":"Traceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 327, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"/home/its_0x08/Desktop/exploits/CrackMapExec/core/maingreenlet.py\", line 34, in connect\r\n    smb = SMBConnection(host, host, None, settings.args.port)\r\n  File \"/usr/local/lib/python2.7/dist-packages/impacket/smbconnection.py\", line 61, in __init__\r\n    self.negotiateSession(preferredDialect)\r\n  File \"/usr/local/lib/python2.7/dist-packages/impacket/smbconnection.py\", line 81, in negotiateSession\r\n    self._SMBConnection = smb3.SMB3(self._remoteName, self._remoteHost, self._myName, hostType, self._sess_port, self._timeout, session = self._nmbSession )\r\n  File \"/usr/local/lib/python2.7/dist-packages/impacket/smb3.py\", line 231, in __init__\r\n    self.negotiateSession(preferredDialect)\r\n  File \"/usr/local/lib/python2.7/dist-packages/impacket/smb3.py\", line 434, in negotiateSession\r\n    if ans.isValidAnswer(STATUS_SUCCESS):\r\n  File \"/usr/local/lib/python2.7/dist-packages/impacket/smb3structs.py\", line 430, in isValidAnswer\r\n    raise smb3.SessionError(self['Status'], self)\r\nSessionError: SMB SessionError: STATUS_INVALID_HANDLE(An invalid HANDLE was specified.)\r\n<Greenlet at 0xb529011cL: connect('192.168.193.171')> failed with SessionError\r\n"},"comment":{"url":"https://api.github.com/repos/CoreSecurity/impacket/issues/comments/160983573","html_url":"https://github.com/CoreSecurity/impacket/issues/111#issuecomment-160983573","issue_url":"https://api.github.com/repos/CoreSecurity/impacket/issues/111","id":160983573,"user":{"login":"asolino","id":11577828,"avatar_url":"https://avatars.githubusercontent.com/u/11577828?v=3","gravatar_id":"","url":"https://api.github.com/users/asolino","html_url":"https://github.com/asolino","followers_url":"https://api.github.com/users/asolino/followers","following_url":"https://api.github.com/users/asolino/following{/other_user}","gists_url":"https://api.github.com/users/asolino/gists{/gist_id}","starred_url":"https://api.github.com/users/asolino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asolino/subscriptions","organizations_url":"https://api.github.com/users/asolino/orgs","repos_url":"https://api.github.com/users/asolino/repos","events_url":"https://api.github.com/users/asolino/events{/privacy}","received_events_url":"https://api.github.com/users/asolino/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T14:28:33Z","updated_at":"2015-12-01T14:28:33Z","body":"There you go... \r\n\r\nThere's something wrong with your PYTHONPATH. Most probably there are two copies of impacket installed, 0.9.10 and 0.9.14-dev. But the PYTHONPATH is finding the old one first.\r\n\r\nWhat you can do now is removing impacket-0.9.10. If you want to do it manually, from your Python prompt type:\r\n``` \r\nfrom impacket import version\r\nprint version.__file__\r\n```\r\n\r\nThat will tell you where the version.py (or pyc) is located. Since that's the old version, go to that directory and remove everything (including the directory). That would clean your system from the 0.9.10 version.\r\n\r\n"}}