From 07b6921777cfe8b063ced87a0d3f3b9d9e865afc Mon Sep 17 00:00:00 2001 From: Marshall Hallenbeck Date: Tue, 9 May 2023 09:50:56 -0400 Subject: [PATCH] fix(smamruser): properly use protocol's logger --- cme/protocols/smb/samruser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cme/protocols/smb/samruser.py b/cme/protocols/smb/samruser.py index 8412604e..8ac85835 100644 --- a/cme/protocols/smb/samruser.py +++ b/cme/protocols/smb/samruser.py @@ -7,8 +7,6 @@ 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: KNOWN_PROTOCOLS = { @@ -17,7 +15,7 @@ class UserSamrDump: } def __init__(self, connection): - self.logger = cme_logger + self.logger = connection.logger self.addr = connection.host if not connection.kerberos else connection.hostname + "." + connection.domain self.protocol = connection.args.port self.username = connection.username