Skip to content

Commit ccf8151

Browse files
committed
Add db.add_creds for kerberos with SSL enforced
1 parent 6b0cfcd commit ccf8151

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,13 @@ def kerberos_login(self, domain, username, password="", ntlm_hash="", aesKey="",
382382

383383
self.check_if_admin()
384384

385+
if password:
386+
self.logger.debug(f"Adding credential: {domain}/{self.username}:{self.password}")
387+
self.db.add_credential("plaintext", domain, self.username, self.password)
388+
elif ntlm_hash:
389+
self.logger.debug(f"Adding credential: {domain}/{self.username}:{self.hash}")
390+
self.db.add_credential("hash", domain, self.username, self.hash)
391+
385392
# Prepare success credential text
386393
self.logger.success(f"{domain}\\{self.username} {self.mark_pwned()}")
387394

0 commit comments

Comments
 (0)