Fix issue #667 with use-kcache option

main
mpgn 2022-11-03 16:04:46 -04:00
parent 83180a6b68
commit b2bcbe0ade
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class connection(object):
self.logger = None
self.password = ''
self.username = ''
self.kerberos = True if self.args.kerberos else False
self.kerberos = True if self.args.kerberos or self.args.use_kcache else False
self.aesKey = None if not self.args.aesKey else self.args.aesKey
self.kdcHost = None if not self.args.kdcHost else self.args.kdcHost
self.export = None if not self.args.export else self.args.export

View File

@ -233,7 +233,7 @@ class smb(connection):
transport = DCERPCTransportFactory(stringBinding)
transport.set_connect_timeout(5)
dce = transport.get_dce_rpc()
if self.args.kerberos:
if self.kerberos:
dce.set_auth_type(RPC_C_AUTHN_GSS_NEGOTIATE)
dce.connect()
try: