Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 50bebac

Browse files
committed
Fix mssql enum host info error
1 parent 9f7a285 commit 50bebac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cme/protocols/mssql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def enum_host_info(self):
8383
try:
8484
smb_conn.login('', '')
8585
except SessionError as e:
86-
if "STATUS_ACCESS_DENIED" in e.message:
86+
if "STATUS_ACCESS_DENIED" in e.getErrorString():
8787
pass
8888

8989
self.domain = smb_conn.getServerDNSDomainName()

0 commit comments

Comments
 (0)