Fix ldap-checker module pth auth using NT hash

main
Sunggwan Choi 2023-01-03 21:05:45 -05:00 committed by mpgn
parent 60a7d8bdc0
commit 909f44d155
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ class CMEModule:
inputUser = connection.domain + '\\' + connection.username
inputPassword = connection.password
if connection.password == '' and connection.nthash is not None:
context.log.debug("Using NT(LM) hash for authentication")
inputPassword = "aad3b435b51404eeaad3b435b51404ee:" + connection.nthash
dcTarget = connection.conn.getRemoteHost()
#Conduct a bind to LDAPS and determine if channel