diff --git a/nxc/helpers/pfx.py b/nxc/helpers/pfx.py index 4ec974967..4d084468a 100644 --- a/nxc/helpers/pfx.py +++ b/nxc/helpers/pfx.py @@ -509,7 +509,7 @@ def pfx_auth(self): req = ini.build_asreq(self.domain, username) self.logger.info("Requesting TGT") - sock = KerberosClientSocket(KerberosTarget(self.host)) + sock = KerberosClientSocket(KerberosTarget(self.kdcHost)) try: res = sock.sendrecv(req) except Exception as e: @@ -527,7 +527,7 @@ def pfx_auth(self): creds = ccache.getCredential(principal) if creds is not None: tgt = creds.toTGT() - dumper = GETPAC(username, self.domain, self.host, key, tgt) + dumper = GETPAC(username, self.domain, self.kdcHost, key, tgt) nthash = dumper.dump() if not self.kerberos: self.hash_login(self.domain, username, nthash)