update logging and formatting
parent
908d72159e
commit
38ce4f6112
|
@ -61,9 +61,7 @@ class LDAPConnect:
|
|||
ldapConnection = ldap_impacket.LDAPConnection('ldap://%s' % kdc, baseDN)
|
||||
ldapConnection.kerberosLogin(username, password, domain, lmhash, nthash, aesKey, kdcHost=kdc, useCache=False)
|
||||
# Connect to LDAP
|
||||
out = u'{}{}:{}'.format('{}\\'.format(domain),
|
||||
username,
|
||||
password if password else ntlm_hash)
|
||||
out = f"{domain}{username}:{password if password else ntlm_hash}"
|
||||
self.logger.extra['protocol'] = "LDAP"
|
||||
self.logger.extra['port'] = "389"
|
||||
return ldapConnection
|
||||
|
|
Loading…
Reference in New Issue