Hi all, can anybody help me with my python issue I am having running CME?
CME runs normally until it finds a user, then it shows this error message after finding a user.
does anyone know what I can do?
Traceback (most recent call last):
File “/home/kali/.local/lib/python3.8/site-packages/impacket/nmb.py”, line 979, in non_polling_read
received = self._sock.recv(bytes_left)
File “/usr/lib/python3/dist-packages/gevent/_socket3.py”, line 378, in recv
return _socket.socket.recv(self._sock, *args)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “src/gevent/greenlet.py”, line 766, in gevent._greenlet.Greenlet.run
File “/usr/lib/python3/dist-packages/cme/protocols/smb.py”, line 110, in init
connection.init(self, args, db, host)
File “/usr/lib/python3/dist-packages/cme/connection.py”, line 47, in init
self.proto_flow()
File “/usr/lib/python3/dist-packages/cme/connection.py”, line 82, in proto_flow
self.login()
File “/usr/lib/python3/dist-packages/cme/connection.py”, line 213, in login
if self.plaintext_login(self.domain, usr.strip(), f_pass.strip()): return True
File “/usr/lib/python3/dist-packages/cme/protocols/smb.py”, line 282, in plaintext_login
self.conn.login(username, password, domain)
File “/home/kali/.local/lib/python3.8/site-packages/impacket/smbconnection.py”, line 271, in login
return self._SMBConnection.login(user, password, domain, lmhash, nthash)
File “/home/kali/.local/lib/python3.8/site-packages/impacket/smb3.py”, line 848, in login
ans = self.recvSMB(packetID)
File “/home/kali/.local/lib/python3.8/site-packages/impacket/smb3.py”, line 416, in recvSMB
data = self._NetBIOSSession.recv_packet(self._timeout)
File “/home/kali/.local/lib/python3.8/site-packages/impacket/nmb.py”, line 914, in recv_packet
data = self.__read(timeout)
File “/home/kali/.local/lib/python3.8/site-packages/impacket/nmb.py”, line 997, in __read
data = self.read_function(4, timeout)
File “/home/kali/.local/lib/python3.8/site-packages/impacket/nmb.py”, line 983, in non_polling_read
raise NetBIOSError(‘Error occurs while reading from remote’, ERRCLASS_OS, ex[0])
TypeError: ‘ConnectionResetError’ object is not subscriptable
2020-06-06T21:19:39Z <Greenlet at 0x7fee5c92d480: smb(Namespace(aesKey=False, clear_obfscripts=False, co, <protocol.database object at 0x7fee5c982e50>, ‘10.10.10.172’)> failed with TypeError