fix(smamruser): properly use protocol's logger
parent
0469e72fa4
commit
07b6921777
|
@ -7,8 +7,6 @@ from impacket.dcerpc.v5.rpcrt import DCERPCException
|
||||||
from impacket.dcerpc.v5.rpcrt import DCERPC_v5
|
from impacket.dcerpc.v5.rpcrt import DCERPC_v5
|
||||||
from impacket.nt_errors import STATUS_MORE_ENTRIES
|
from impacket.nt_errors import STATUS_MORE_ENTRIES
|
||||||
|
|
||||||
from cme.logger import cme_logger
|
|
||||||
|
|
||||||
|
|
||||||
class UserSamrDump:
|
class UserSamrDump:
|
||||||
KNOWN_PROTOCOLS = {
|
KNOWN_PROTOCOLS = {
|
||||||
|
@ -17,7 +15,7 @@ class UserSamrDump:
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, connection):
|
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.addr = connection.host if not connection.kerberos else connection.hostname + "." + connection.domain
|
||||||
self.protocol = connection.args.port
|
self.protocol = connection.args.port
|
||||||
self.username = connection.username
|
self.username = connection.username
|
||||||
|
|
Loading…
Reference in New Issue