diff --git a/cme/connection.py b/cme/connection.py index bbecc4eb..2ab0aab6 100644 --- a/cme/connection.py +++ b/cme/connection.py @@ -6,7 +6,7 @@ from StringIO import StringIO from functools import wraps from gevent.coros import BoundedSemaphore from impacket.smbconnection import SMBConnection, SessionError -from impacket.nmb import NetBIOSError +from impacket.nmb import NetBIOSError, SessionError from impacket import tds from cme.mssql import * from impacket.dcerpc.v5.rpcrt import DCERPCException @@ -108,6 +108,8 @@ class Connection: pass except socket.error: pass + except SessionError: + pass if self.args.mssql: instances = None