Skip to content

Commit

Permalink
Merge pull request #536 from Pennyw0rth/pfx_fix
Browse files Browse the repository at this point in the history
fix pfx auth on non dc
  • Loading branch information
mpgn authored Jan 7, 2025
2 parents 5d680a9 + 4a3f3e3 commit 5103f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nxc/helpers/pfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 5103f57

Please sign in to comment.