From bb5df5160dffe42082985a03a14122ab78dafe7b Mon Sep 17 00:00:00 2001 From: Marshall Hallenbeck Date: Fri, 14 Apr 2023 15:11:12 -0400 Subject: [PATCH] fix(samruser): properly set logger --- cme/protocols/smb/samruser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cme/protocols/smb/samruser.py b/cme/protocols/smb/samruser.py index f2784384..bff3aeb9 100644 --- a/cme/protocols/smb/samruser.py +++ b/cme/protocols/smb/samruser.py @@ -7,6 +7,8 @@ from impacket.dcerpc.v5.rpcrt import DCERPCException from impacket.dcerpc.v5.rpcrt import DCERPC_v5 from impacket.nt_errors import STATUS_MORE_ENTRIES +from cme.logger import cme_logger + class UserSamrDump: @@ -16,7 +18,7 @@ class UserSamrDump: } def __init__(self, connection): - self.logger = connection.cme_logger + self.logger = cme_logger self.addr = connection.host if not connection.kerberos else connection.hostname + '.' + connection.domain self.protocol = connection.args.port self.username = connection.username